0% found this document useful (0 votes)
75 views1 page

DNS Header (RFC 1035)

RFC 1035 outlines the Domain Name System (DNS) protocol, detailing the structure of DNS messages including the header format and various fields such as Opcode, Response Code, and counts for different sections. It specifies the purpose of each field in the DNS message, including query types and response characteristics. The document serves as a foundational reference for understanding how DNS operates and communicates over the internet.

Uploaded by

Honey Dhaliwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
75 views1 page

DNS Header (RFC 1035)

RFC 1035 outlines the Domain Name System (DNS) protocol, detailing the structure of DNS messages including the header format and various fields such as Opcode, Response Code, and counts for different sections. It specifies the purpose of each field in the DNS message, including query types and response characteristics. The document serves as a foundational reference for understanding how DNS operates and communicates over the internet.

Uploaded by

Honey Dhaliwal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Domain Name System - DNS (RFC 1035)

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Byte Offset 0 Byte Offset 1 Byte Offset 2 Byte Offset 3
Opcode RCODE

QR

AA
TC
RD
RA
DNS ID (16-bit) Z (3-bit)
(4-bit) (4-bit)
Byte Offset 4 Byte Offset 5 Byte Offset 6 Byte Offset 7

Question Count (QDCOUNT) (16-bit) Answer Count (ANCOUNT) (16-bit)

Byte Offset 8 Byte Offset 9 Byte Offset 10 Byte Offset 11

Name Server Count (NSCOUNT) (16-bit) Additional Records Count (ADCOUNT) (16-bit)

Byte Offset 12 Byte Offset 13 Byte Offset 14 Byte Offset 15

Question Section (16-bit) Answer Section (16-bit)

Byte Offset 16 Byte Offset 17 Byte Offset 18 Byte Offset 19

Authority Section (16-bit) Additional Information Section (16-bit)


0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Query/Response dig version.bind txt chaos @ server name


0 Query dig @ server name txt chaos version.bind
1 Response
Opcode
0 Standard query (QUERY)
1 Inverse query (IQUERY)
2 Server status request (STATUS)
AA
1 Authoritative Answer
TC
1 Truncation
RD
1 Recursion Desired
RA
1 Recursion Available
Z
Reserved; set to 0
Response Code
0 No Error
1 Format Error
2 Server Failure
3 Non-existent Domain (NXDOMAIN)
4 Query Type Not Implemented
5 Query Refused
QDCOUNT
(Number of entries in Question section)
ANCOUNT
(Number of resource records in Answer section)
NSCOUNT
(Number of name server resource records in Authority section)
ARCOUNT
(Number of resource records in Additional Information section)

You might also like