Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View DNS data datagram via wireshark #39

Open
selfboot opened this issue Jul 2, 2017 · 1 comment
Open

View DNS data datagram via wireshark #39

selfboot opened this issue Jul 2, 2017 · 1 comment
Labels

Comments

@selfboot
Copy link
Owner

selfboot commented Jul 2, 2017

We use dig google.com to find the IP address of google.com, and use wireshark to capture the DNS datagram.

Request

Following is the request data info:

image

Response

Following is the response data info, header section is somehow different with the request datagram, which is as follows:

image

There is answer section in response, as follows:

image

About domain name compression, you can refer #42. Note that the offset in compression(here is 0c in c00c) is started at the very first field in the DNS portion of the packet, which is the transaction ID, and count down 12 bytes.

Ref
RFC 1035
DNS Primer Note
#42

@selfboot
Copy link
Owner Author

Wireshark pacpng file is as follows:

DNS.pcapng.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant