Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5725743
  • 博文数量: 745
  • 博客积分: 10075
  • 博客等级: 上将
  • 技术积分: 7716
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 12:09
文章分类

全部博文(745)

文章存档

2019年(1)

2016年(1)

2010年(31)

2009年(88)

2008年(129)

2007年(155)

2006年(197)

2005年(143)

分类:

2006-08-15 10:27:34

A client attempting to resolve the name to an IP address
The following steps describe the DNS name-resolution process
1,The client system consults the /etc/nsswitch.conf file to determine the name resolution order. In this example, the order is the local file, the Lightweight Directory Access Protocol(LDAP) server, and then the DNS server
2,The client system consults the local /etc/inet/hosts file and does not find an entry
3,The client system sends a query asking for the IP address of the internet name, ., to the LDAP server and finds no address
4,The client system consults the /etc/resolv.conf file to determine the name resolution search list and the address of the DNS servers
5,The client system resolver routine sends a recursive DNS query asking for the IP address for the Internet name, ., to the local DNS server. A recursive query states:"I will wait for the answer, and you do all the work." The client waits until the local server completes name resolution
6,The local DNS server consults the contents of its cached information in case this query has been recently resolved. If the address is in the local cache, it is returned to the client as a non-authoritative answer
7,If the local DNS server does not have cached information about the net or internic domains, it contacts one of the root servers and sends an iterative query. An itrative query states:" Send me the best answer you have, and I'll do all the work" In this example, the assumption is that the answer is not cached and that a root server must be contacted
8,The root server returns the best information it has. In this case, the only information you are gurarnteed is that the root server has the names and addresses of all the net domain servers. The root server teturns these names and addresses along with a time-to-live (TTL) value that specifies how long the local DNS server can cache this information
9,The local DNS server contacts one of the net domain servers returned from the previous query and transmits the same iterative query that was previously sent to a root server
10,The net domain server that is contacted returns the best information it has which are the names and addresses of the internic.net servers and a TTL value
11,The local DNS server contacts one of the internic.net domain servers and makes the same query for the IP address for the internet name,
12,An internic.net server returns the IP addresses of the internet name, , along with a TTL value
The local DNS server returns the requested address to the client system, and the client can proceed
阅读(3341) | 评论(0) | 转发(0) |
0

上一篇:2006.8.15 1:20 签到

下一篇:Part2:TCP/IP Review

给主人留下些什么吧!~~