cancel
Showing results for 
Search instead for 
Did you mean: 

How to troubleshoot DNS with help of wireshark

Mayank
RUCKUS Team Member

DNS is a directory of domain names that align with IP, and it bridges the gap between computer and human language.

Mayank_0-1698137959900.png

There are basically two packets when we observe DNS in Wireshark - query and response packet as show in the  screenshot:

Mayank_1-1698138004502.png

 

Mayank_2-1698138004508.png

  >The transaction id is same in both query and response.

Flags:

A>If the first bit in DNS flag is zero that means it’s a DNS query packet.

B >If it's 1 then it’s a response packet 

 

Mayank_3-1698138004519.png

 

 

Mayank_4-1698138004530.png

 

>Opcode number are of four different values signifies whether it’s an update packet or not for example:

If the value of the opcode subfield is 0 then it is a standard query.

The value 1 corresponds to an inverse of query that implies finding the domain name from the IP Address. 

The value refers to the server status request.

The value 3 specifies the status reserved and therefore not used.

 

>Truncated field tells us whether packet it is cut shot or not.

 

Mayank_5-1698138004533.png

>Recursion means where one DNS server communicates with several other DNS server to hunt down an ip address and return it to the client

 

Mayank_6-1698138004537.png

>Questions field signifies whether you have queried for something or not. Default is 1 for any request sent or received.

 

Mayank_7-1698138004547.png

 

>Queries signifies what is the host address of google.com and IN stands for internet class.

 

Mayank_8-1698138004548.png

>Time column is only available in query response field, it tells how long response took to comeback.

 

Mayank_9-1698138004550.png

>Reply code all 0 means it’s a positive response no error.

>Reply code 2 means server failure.

>Rely code 3 req name is not in server.

 

Mayank_10-1698138004550.png

 

Mayank_11-1698138004555.png

>Answer section tell host address of google.com is 70.80.1.50 this is positive response.

>A positive response will have answer section here.

 

Mayank_12-1698138004562.png

 

Mayank_13-1698138004568.png

>DNS authoritative response: It tell client that whatever record resource you have asked the server is not available as shown in the above screen shot. If it is available, then it sends positive response.

 

 

 

 

 

0 REPLIES 0