25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 12-5 DNS message format<br />

Header format<br />

The header section is always present <strong>and</strong> has a fixed length of 12 bytes. The<br />

other sections are of variable length.<br />

ID A 16-bit identifier assigned by the program. This identifier is<br />

copied in the corresponding reply from the name server <strong>and</strong> can<br />

be used for differentiation of responses when multiple queries<br />

are outst<strong>and</strong>ing at the same time.<br />

Parameters A 16-bit value in the following format (Table 12-3).<br />

Table 12-3 Parameters<br />

0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15<br />

Q<br />

R<br />

Op code A<br />

A<br />

Where:<br />

QR Flag identifying a query (0) or a response(1).<br />

Op code 4-bit field specifying the kind of query:<br />

440 <strong>TCP</strong>/<strong>IP</strong> <strong>Tutorial</strong> <strong>and</strong> <strong>Technical</strong> <strong>Overview</strong><br />

T<br />

C<br />

R<br />

D<br />

R<br />

A<br />

0 St<strong>and</strong>ard query (QUERY)<br />

1 Inverse query (IQUERY)<br />

2 Server status request (STATUS)<br />

Zero Rcode

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!