of the domain name we are seeking – but there may be many of the other records. These rec-
ords are grouped in sections, such as the Authority section for all of the authority records. Each
Step 4: Details of DNS Messages
Select the first DNS query that corresponds to your dig commands and expand its DNS block. Likely this
query is the first packet in your trace, with the first several packets corresponding to your dig com-
Look at the DNS header, and answer the following questions:
1. How many bits long is the Transaction ID? Based on this length, take your best guess as to how
2. Which flag bit and what values signifies whether the DNS message is a query or response?
3. How many bytes long is the entire DNS header? Use information in the bottom status line when
you select parts of the packet and the bottom panel to help you work this out.
Now examine the responses to the dig DNS queries you made. The initial response should have provid-
Look at the body of the DNS response messages, and answer the following questions:
4. For the initial response, in what section are the names of the nameservers carried? What is the
Type of the records that carry nameserver names?
5. Similarly, in what section are the IP addresses of the nameservers carried, and what is the Type
of the records that carry the IP addresses?
6. For the final response, in what section is the IP address of the domain name carried?