The TCP/IP Guide - Version 3.0 (Contents) ` 1062 _ © 2001-2005 Charles M. Kozierok. All Rights Reserved.
Opcode
1/2
(4 bits)
AA
1/8
(1 bit)
Authoritative Answer Flag: This bit is set to 1 in a response to indicate
that the server that created the response is authoritative for the zone in
which the domain name specified in the Question section is located. If it is
0, the response is non-authoritative.
TC
1/8
(1 bit)
Truncation Flag: When set to 1, indicates that the message was truncated
due to its length being longer than the maximum permitted for the type of
transport mechanism used. TCP doesn't have a length limit for messages,
while UDP messages are limited to 512 bytes, so this bit being sent usually
is an indication that the message was sent using UDP and was too long to
fit. The client may need to establish a TCP session to get the full message.
On the other hand, if the portion truncated was part of the Additional
section, it may choose not to bother.
RD
1/8
(1 bit)
Recursion Desired: When set in a query, requests that the server
receiving the query attempt to answer the query recursively, if the server
supports recursive resolution. The value of this bit is not changed in the
response.
Table 170: DNS Message Header Format (Page 2 of 4)
Field Name
Size
(bytes)
Description
pera
on
o
e:
pec
es
e
ype o
query
e message
s carry
ng.
s
field is set by the creator of the query and copied unchanged into the
response:
Opcode
Value
Query
Name
Description
0 QUERY A standard query.
1 IQUERY
An inverse query; now obsolete. RFC 1035 defines
the inverse query as an optional method for
performing inverse DNS lookups, that is, finding a
name from an IP address. Due to implementation
difficulties, the method was never widely deployed,
however, in favor of reverse mapping using the IN-
ADDR.ARPA domain. Use of this Opcode value was
formally obsoleted in RFC 3425, November 2002.
2 STATUS A server status request.
3 (reserved) Reserved, not used.
4 NOTIFY
A special message type added by RFC 1996. It is
used by a primary (master, authoritative) server to
tell secondary servers that data for a zone has
changed and prompt them to request a zone
transfer. See the discussion of DNS server enhance-
ments for more details.
5 UPDATE
A special message type added by RFC 2136 to
implement “dynamic DNS”. It allows resource
records to be added, deleted or updated selectively.
See the discussion of DNS server enhancements for
more details.