Book Image

Understanding TCP/IP

By : CP Books a.s.
Book Image

Understanding TCP/IP

By: CP Books a.s.

Overview of this book

This book covers in detail the Open System Interconnection (OSI) reference model and the TCP/IP protocols that operate that different layers. Its coverage includes various application protocols. The authors explain in an easy-to-read style networking concepts and protocols, with examples that make the book a practical guide in addition to its coverage of theory.
Table of Contents (20 chapters)
19
Index

11.6 DNS Query

The DNS QUERY operation consists of a query and an answer. A query contains a request for an RR (or several RRs) from the DNS database. The answer either contains the particular RR or is a denial. The RR contained in an answer can be the ultimate answer or help the client to formulate another DNS QUERY to achieve the aim, i.e., to formulate another iteration.

11.6.1 DNS Query Packet Format

DNS query uses the same packet format for both queries and answers as shown in the following figure:

11.6.1 DNS Query Packet Format

Figure 11.4: DNS Query packet format

A packet can consist of up to five sections. Each packet has to contain the HEADER section.

The term ‘query’ is used in two senses:

  1. A DNS QUERY operation. A basic DNS protocol operation through which records (RR) are searched for in DNS databases.
  2. The DNS QUERY operation always consists of a query (sent by a client) and an answer to it sent to the client by the name server. The client is either a resolver or a name server that cannot provide...