7.3.1.6 Lab - Exploring DNS Traffic
7.3.1.6 Lab - Exploring DNS Traffic
7.3.1.6 Lab - Exploring DNS Traffic
Objectives
Part 1: Capture DNS Traffic
Part 2: Explore DNS Query Traffic
Part 3: Explore DNS Response Traffic
Background / Scenario
Wireshark is an open source packet capture and analysis tool. Wireshark gives a detailed breakdown of the
network protocol stack. Wireshark allows you to filter traffic for network troubleshooting, investigate security
issues, and analyze network protocols. Because Wireshark allows you to view the packet details, it can be
used as a reconnaissance tool for an attacker.
In this lab, you will install Wireshark on a Windows system and use Wireshark to filter for DNS packets and
view the details of both DNS query and response packets.
Required Resources
1 Windows PC with Internet access and Wireshark installed
Cisco and/or its affiliates. All rights reserved. Cisco Confidential Page 1 of 11 www.netacad.com
Lab – Exploring DNS Traffic
It is recommended that you remove the old version of Wireshark prior to installing another version. Click
Yes to uninstall the previous version of Wireshark.
f. If this is the first time to install Wireshark, or after you have completed the uninstall process, you will
navigate to the Wireshark Setup wizard. Click Next.
g. Continue advancing through the installation process. Click I Agree when the License Agreement window
displays.
h. Keep the default settings on the Choose Components window and click Next.
Cisco and/or its affiliates. All rights reserved. Cisco Confidential Page 2 of 11 www.netacad.com
Lab – Exploring DNS Traffic
l. Do NOT install USBPcap for normal traffic capture. Do NOT select the checkbox to install USBPcap.
USBPcap is experimental, and it could cause USB problems on your PC. Click Install to continue.
m. Wireshark starts installing its files and a separate window displays with the status of the installation. Click
Next when the installation is complete.
n. Click Finish to complete the Wireshark install process. Reboot the computer if necessary.
b. Click Start and search for Command Prompt. Open Command Prompt.
Cisco and/or its affiliates. All rights reserved. Cisco Confidential Page 3 of 11 www.netacad.com
Lab – Exploring DNS Traffic
c. In the Command Prompt, type ipconfig /flushdns and press Enter to clear the DNS cache.
Cisco and/or its affiliates. All rights reserved. Cisco Confidential Page 4 of 11 www.netacad.com
Lab – Exploring DNS Traffic
Cisco and/or its affiliates. All rights reserved. Cisco Confidential Page 5 of 11 www.netacad.com
Lab – Exploring DNS Traffic
What are the source and destination MAC addresses? Which network interfaces are these MAC
addresses associated with?
Source MAC Adress is e4:54:e8:9c:c6:b9 . Destination MAC Adress is 00:00:5e:00:01:7a
Source: Dell_9c:c6:b9 (e4:54:e8:9c:c6:b9)
Address: IETF-VRRP-VRID_7a (00:00:5e:00:01:7a)
e. Expand Internet Protocol Version 4. Observe the source and destination IPv4 addresses.
What are the source and destination IP addresses? Which network interfaces are these IP addresses
associated with?
Source: 10.122.1.41
Destination: 10.10.10.10
Cisco and/or its affiliates. All rights reserved. Cisco Confidential Page 6 of 11 www.netacad.com
Lab – Exploring DNS Traffic
f. Expand the User Datagram Protocol. Observe the source and destination ports.
What are the source and destination ports? What is the default DNS port number?
Source Port: 50678
Destination Port: 53
Cisco and/or its affiliates. All rights reserved. Cisco Confidential Page 7 of 11 www.netacad.com
Lab – Exploring DNS Traffic
g. Open a Command Prompt and enter arp –a and ipconfig /all to record the MAC and IP addresses of the
PC.
Compare the MAC and IP addresses in the Wireshark results to the results from the ipconfig /all results.
What is your observation?
h. Expand Domain Name System (query) in the Packet Details pane. Then expand the Flags and
Queries.
Cisco and/or its affiliates. All rights reserved. Cisco Confidential Page 8 of 11 www.netacad.com
Lab – Exploring DNS Traffic
i. Observe the results. The flag is set to do the query recursively to query for the IP address to
www.cisco.com.
Cisco and/or its affiliates. All rights reserved. Cisco Confidential Page 9 of 11 www.netacad.com
Lab – Exploring DNS Traffic
What are the source and destination MAC and IP addresses and port numbers? How do they compare to
the addresses in the DNS query packets?
b. Expand Domain Name System (response). Then expand the Flags, Queries, and Answers.
Cisco and/or its affiliates. All rights reserved. Cisco Confidential Page 10 of 11 www.netacad.com
Lab – Exploring DNS Traffic
d. Observe the CNAME and A records in the Answers details. How do the results compare to nslookup
results?
Reflection
1. From the Wireshark results, what else can you learn about the network when you remove the filter?
Cisco and/or its affiliates. All rights reserved. Cisco Confidential Page 11 of 11 www.netacad.com