|
 |
栏目导栏 |
|
| |
|
|
|
|
 |
资料搜索 |
|
| |
|
|
|
|
 |
热门文章 |
|
| |
|
|
|
|
 |
最新文章 |
|
| |
|
|
|
| |
| |
|
|
|
[ 作者: Linux联盟收集 加入时间:2006-07-19 13:08:39 来自:Linux联盟收集
] | |
|
心情不错,翻译josephxd贴上来的Solaris - dns名称解析过程,请笑纳。aC8Linux联盟 声明:不负责由于错误翻译误导而导致的任何损失。欢迎转载。)aC8Linux联盟 aC8Linux联盟 Solaris - dns名称解析过程[中文]aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 [译]SamhooaC8Linux联盟 aC8Linux联盟 本文的目的在于阐述DNS名称解析过程。为了给出一个例子,我们假设某个用户试图从客户机ftp到ftp.internic.net。aC8Linux联盟 aC8Linux联盟 该客户机将经历如下解析步骤:aC8Linux联盟 aC8Linux联盟 1. 客户机根据/etc/nsswitch.conf文件来确定名字解析的顺序。在本例中,假定的顺序是:首先是本地文件,其次aC8Linux联盟 aC8Linux联盟 NIS+服务器,最后是DNS。aC8Linux联盟 aC8Linux联盟 2. 客户机查找本地/etc/inet/hosts文件,没有发现匹配项。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 3. 客户机向NIS+服务器发起关于ftp.internic.net地址的查询,仍然没有找到。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 4. 客户机根据/etc/resolv.conf文件确定名称解析搜索列表和本地DNS服务器的地址。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 5. 客户机解析例程向本地DNS服务器发起一个递归的DNS查询,以返回ftp.intenic.net的地址。这次,客户机将阻塞直aC8Linux联盟 aC8Linux联盟 到本地DNS服务器完成名称解析。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 6. 如果该查询最近出现过,本地DNS服务器首先会检查缓冲。如果该查询结果在本地缓冲里,它向客户机返回一个非权aC8Linux联盟 aC8Linux联盟 威的查询结果aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 7. 本地DNS服务器向负责internic.net域查询的DNS服务器(如果没有适当的DNS服务器就向根服务器)发起一个交互查aC8Linux联盟 aC8Linux联盟 询。在本例中,我们假设缓冲中没有所需的查询结果,而且根服务器服务于我们的查询。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 8. 根服务器返回最接近的信息。这样,你只能从根服务器得到的所有net.服务器的名称和地址。根服务器返回的这些aC8Linux联盟 aC8Linux联盟 名称和地址还包含了维持时间(time-to-alive),维持时间用于通知本地域名服务器,这些名称和地址可以缓冲多长aC8Linux联盟 aC8Linux联盟 时间。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 9. 本地DNS服务器向上一步查询返回的net.服务器的其中之一发起查询,查询的过程与上述向根服务器进行的交互查询aC8Linux联盟 aC8Linux联盟 是一样的。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 10. net.服务器返回最为接近的信息--internic.net.服务器的地址和名称及其维持时间(time-to-live)。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 11. 本地DNS服务器向其中的一个internic.net.服务器发起相同的查询。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 12. internic.net.服务器返回ftp.internic.net的地址及其维持时间(time-to-live)。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 13. 本地DNS服务器向客户机返回所请求的地址,然后就可以处理ftp命令。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 14. 本地DNS服务器将缓冲ftp.internic.net的地址用于以后的查询。aC8Linux联盟 aC8Linux联盟 aC8Linux联盟 附原文:aC8Linux联盟 The purpose of this infodoc is to explain the DNS Name Resolution Process. To use an example, let's say aC8Linux联盟 aC8Linux联盟 a user is trying to ftp to ftp.internic.net from a client machine. The client machine resolution process aC8Linux联盟 aC8Linux联盟 uses the following steps: aC8Linux联盟 1. The client system consults the /etc/nsswitch.conf file to determine the name resolution order. In aC8Linux联盟 aC8Linux联盟 this example, the presumed order is local files first, NIS+ server second, and DNS third. aC8Linux联盟 aC8Linux联盟 2. The client system consults the local /etc/inet/hosts file and does not find an entry. aC8Linux联盟 aC8Linux联盟 3. The client system sends a query regarding the address of ftp.internic.net to the NIS+ server and aC8Linux联盟 aC8Linux联盟 finds none. aC8Linux联盟 aC8Linux联盟 4. The client system consults the /etc/resolv.conf file to determine the name resolution search list and aC8Linux联盟 aC8Linux联盟 the address of the local DNS server. aC8Linux联盟 aC8Linux联盟 5. The client system resolver routines send a recursive DNS query regarding the return address of aC8Linux联盟 aC8Linux联盟 ftp.internic.net to the local DNS server. At this point, the client will wait until the local server has aC8Linux联盟 aC8Linux联盟 completed name resolution. aC8Linux联盟 aC8Linux联盟 6. The local DNS server consults the contents of its cached information in case this query has been aC8Linux联盟 aC8Linux联盟 tried recently. If the answer is in local cache, it is returned to the client as a non-authoritative aC8Linux联盟 aC8Linux联盟 answer. aC8Linux联盟 aC8Linux联盟 7. The local DNS server contacts the appropriate DNS server for the internic.net domain (if known) or a aC8Linux联盟 aC8Linux联盟 root server, and sends an iterative query. In this example, the assumption is that the answer is not aC8Linux联盟 aC8Linux联盟 cached and root server must be contacted. aC8Linux联盟 aC8Linux联盟 8. The root server returns the best information it has. In this case, the only information you can be aC8Linux联盟 aC8Linux联盟 guaranteed that the root server will have is the names and addresses of all the net.servers. The root aC8Linux联盟 aC8Linux联盟 server returns these names and addresses along with a time-to-live value specifying how long the local aC8Linux联盟 aC8Linux联盟 name server can cache this information. aC8Linux联盟 aC8Linux联盟 9. The local DNS server contacts one of the net.servers returned from the previous query, and transmits aC8Linux联盟 aC8Linux联盟 the same iterative query sent to the root servers earlier. aC8Linux联盟 aC8Linux联盟 10. The net.server contacted returns the best information it has, which is the names and addresses of aC8Linux联盟 aC8Linux联盟 the internic.net. servers along with a time-to-live value. aC8Linux联盟 aC8Linux联盟 11. The local DNS server contacts one of the internic.net. servers and makes the same query. aC8Linux联盟 aC8Linux联盟 12. The internic.net. servers return the address of the ftp.internic.net along with the time-to-live aC8Linux联盟 aC8Linux联盟 value. aC8Linux联盟 aC8Linux联盟 13. The local DNS server returns the requested address to the client system and the ftp command can aC8Linux联盟 aC8Linux联盟 proceed. aC8Linux联盟 aC8Linux联盟 14. Now this address for ftp.internic.net will be cached in local DNS server for future queries.aC8Linux联盟
Linux联盟收集整理 ,转贴请标明原始链接,如有任何疑问欢迎来本站Linux论坛讨论 |
|
|
|
|
|