Open In App

DNS Message Format

DNS allows you to interact with devices on the Internet without having to remember long strings of numbers. Changing of information between client and server is carried out by two types of DNS messages:

The format is similar for both types of messages. The information is held up in up to five different sections of DNS message format. The query message is having two sections- header and question records. 



The response message consists of five sections:

 

The above representation is showing the DNS Message format in which some fields are set to 0s for query messages. 



 

Here is the description of each subfield of the Flags field:

For more details please refer to the article Domain Name System (DNS) in Application Layer article.

Article Tags :