How DNS Work

Posted anyu686

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How DNS Work相关的知识,希望对你有一定的参考价值。

How DNS Work 

When the client try to connect to a hostname, it go through the following process

1) Check it own cache, to see if it can find it,  ipconfig /displaydns can check the dns cache in window, it can also added in /etc/hosts

2) if it is not found in 1), it query for ISP dns server 

3) if DNS server cannot find it under its cache, it direct the query to root server, there are 13 root server in the world

4) Root server retun the Top Level Domain Server (TLD) to ISP DNS server (e.g .com server)

5) ISP DNS server send the query to .com server 

6) .com server respons it with authority name server

7) ISP DNS server send the query to the server returned in 6)

8) the server in 6) return the A name record 

9) ISP DNS server add the record to cache and give it to client.

 

 

以上是关于How DNS Work的主要内容,如果未能解决你的问题,请参考以下文章

How DNS Work

DNS 到底怎么工作的? (How does dns work?)

DiG HOWTO How to use dig to query DNS name servers.

Centos6.2设置静态ip和dns

How to solve the problem that Github can't visit in China?

反向 DNS 不工作,未找到:3(NXDOMAIN)