DNS解析:域名系统详解
2016-09-20 23:04:41 0 举报
AI智能生成
TCP/IP 卷一详解版
作者其他创作
大纲/内容
14.5 Pointer Queries
A perpetual stumbling block in understanding the DNS is how pointer queries as handled - Given an IP address , return the name corresponding to the address
When an IP datagram arrives at a host for a server, be it a UDP datagram or a TCP connection request segment , all that's available to the server process is the client's IP address and port number (UDP or TCP)
14.6 Resouce Records
We've seen a few different types of resource records so far an IP address has a type of A, and PTR means a pointer query .
14.7 Caching
To reduce the DNS traffic on the Internet , all name servers employ a cache. With the standard Unix implementation , the cache is maintained in the server, not the resolver.
14.8 UDP or TCP
We've manetioned that the well-known port numbers for DNS name servers are UDP port 53 and TCP port 53.This implies that the DNS supports both UDP and TCP.
14.9 Another Example
14.1 Introduction
The domain name system , or DNS , is a distributed database that is used by TCP/IP applications to map between hostnames and IP addresses, and to provide electronic mail routing information.
14.2 DNS Basics
The DNS name sapce is hierarchical, similar to the Unix filesystem.
14.3 DNS Message Format
There is one DNS message defined for both queries and responses.
Question Portion of DNS Query Message
The format of each question in the question section is shown in Figure 14.5 . There is normally just one question
Resource Record Portion of DNS Response Message
The final three fields in the DNS message , the answers , authority , and additional information fields, share a common format called a resource record or RR.
14.4 A Simple Example
14.10 Summary
0 条评论
下一页