Domain Name Knowledge Base | Cheap Domain Name Registration

How Domain Name System (DNS) Works

Part 4: Actual Working Procedures of DNS

Actually, the DNS working system is a bit more complicated than the system we discussed before. However the working principle is the same. It can also solve the problems we discussed in previous Chapter.

Actual working system of DNS:

how dns works flow chart

Working Procedures of DNS:

  1. When your computer need to connect with a host on the Internet (e.g. MyGreatName.com), you only need to enter the Domain Name (e.g. MyGreatName.com) in the URL of browser. Your computer will then contact the configured or default Name Servers (usually your ISP Name Server), asking for the IP Address of the host (e.g MyGreatName.com).
  2. If your ISP Name Server has the information of the IP Address of the query host, it will tell your computer immediately.
  3. Assume that your ISP Name Server do not have the information of MyGreatName.com. Your ISP Name Server will ask the DNS Root Name Server immediately the Name Server that has the information of MyGreatName.com.

    STOP! You may ask: "How can your ISP Name Server knows the Root Name Server? Which Root Name Server to ask?"

    Actually all Name Servers will download and install a file from the FTP server of interNIC. The file is called "named.cache" or "named.root". This file has the IP Addresses of ALL Root Name Servers.

    Here's the file of "named.cache" as in May, 2005:

    ; This file holds the information on root name servers 
    ; needed to initialize cache of Internet domain name 
    ; servers (e.g. reference this file in the 
    ; "cache  .  " configuration file of BIND domain 
    : name servers).
    ;
    ; This file is made available by InterNIC registration 
    ; services under anonymous FTP as
    ;     file             /domain/named.root
    ;     on server        FTP.RS.INTERNIC.NET
    ; -OR- under Gopher at RS.INTERNIC.NET
    ;     under menu     InterNIC Registration Services (NSI)
    ;        submenu     InterNIC Registration Archives
    ;     file           named.root
    ;
    ; last update:    Aug 22, 1997
    ; related version of root zone:   1997082200
    ;
    ;
    ; formerly NS.INTERNIC.NET
    ;
    .                     3600000 IN  NS  A.ROOT-SERVERS.NET.
    A.ROOT-SERVERS.NET.   3600000     A   198.41.0.4
    ;
    ; formerly NS1.ISI.EDU
    ;
    .                     3600000     NS  B.ROOT-SERVERS.NET.
    B.ROOT-SERVERS.NET.   3600000     A   128.9.0.107
    ;
    ; formerly C.PSI.NET
    ;
    .                     3600000     NS  C.ROOT-SERVERS.NET.
    C.ROOT-SERVERS.NET.   3600000     A   192.33.4.12
    ;
    ; formerly TERP.UMD.EDU
    ;
    .                     3600000     NS  D.ROOT-SERVERS.NET.
    D.ROOT-SERVERS.NET.   3600000     A   128.8.10.90
    ;
    ; formerly NS.NASA.GOV
    ;
    .                     3600000     NS  E.ROOT-SERVERS.NET.
    E.ROOT-SERVERS.NET.   3600000     A   192.203.230.10
    ;
    ; formerly NS.ISC.ORG
    ;
    .                     3600000     NS  F.ROOT-SERVERS.NET.
    F.ROOT-SERVERS.NET.   3600000     A   192.5.5.241
    ;
    ; formerly NS.NIC.DDN.MIL
    ;
    .                     3600000     NS  G.ROOT-SERVERS.NET.
    G.ROOT-SERVERS.NET.   3600000     A   192.112.36.4
    ;
    ; formerly AOS.ARL.ARMY.MIL
    ;
    .                     3600000     NS  H.ROOT-SERVERS.NET.
    H.ROOT-SERVERS.NET.   3600000     A   128.63.2.53
    ;
    ; formerly NIC.NORDU.NET
    ;
    .                     3600000     NS  I.ROOT-SERVERS.NET.
    I.ROOT-SERVERS.NET.   3600000     A   192.36.148.17
    ;
    ; temporarily housed at NSI (InterNIC)
    ;
    .                     3600000     NS  J.ROOT-SERVERS.NET.
    J.ROOT-SERVERS.NET.   3600000     A   198.41.0.10
    ;
    ; housed in LINX, operated by RIPE NCC
    ;
    .                     3600000     NS  K.ROOT-SERVERS.NET.
    K.ROOT-SERVERS.NET.   3600000     A   193.0.14.129
    ;
    ; temporarily housed at ISI (IANA)
    ;
    .                     3600000     NS  L.ROOT-SERVERS.NET.
    L.ROOT-SERVERS.NET.   3600000     A   198.32.64.12
    ;
    ; housed in Japan, operated by WIDE
    ;
    .                     3600000     NS  M.ROOT-SERVERS.NET.
    M.ROOT-SERVERS.NET.   3600000     A   202.12.27.33
    ; End of File
    


    From the above named.cache file, we know that there are 13 Root Name Servers on the Internet (A.ROOT-SERVERS.NET., B.ROOT-SERVERS.NET., ...., M.ROOT-SERVERS.NET.). The Root Name Servers are distributed around the world.

    Root Name Servers have all of information of Autoritative Domain Name Servers for the top level domain names (for example: .com, .org, .net, .com.hk, etc ..)

  4. When your ISP Name Server do not have the IP address information of MyGreatName.com, it will check the named.cache file and ask for help from the Root NameServer. If the first Root Name Server is out of order or do not have response, your ISP Name Server will ask the second Root Name server.
  5. Root Name Server will then tell your ISP Name Server the authoritative Name Server of MyGreatName.com are 212.69.192.10 (Primary Name Server) and 212.69.192.11 (Secondary Name Server).

    Now you should know that why you need to submit information of two Name Servers when register new domain names.
  6. Your ISP Name Server now has the IP Address of the Authoritative Name Server of MyGreatName.com. Your ISP Name Server will then contact the Authoritative Name Server of MyGreatName.com (212.69.192.10). The Authoritative Name Server of MyGreatName.com will then check and confirm the information of MyGreatName.com. It then tell the IP Address of MyGreatName.com (212.69.204.148) to your ISP.
  7. Your ISP Name Server now has the IP Address of MyGreatName.com, it will tell your computer immediately.
  8. Once your computer get the IP Address of MyGreatName.com, your computer can then communicate with MyGreatName.com.

From the working procedures of DNS, you should notice that:

  • The Root Name Servers on the Internet play a very important role in DNS.
  • There are a lot of Name servers located around the world.
  • All Name Servers on the Internet have the information of all Root Name Servers. If the first Root Name Server has no response, the second Root Name Server will be contacted .......
domain name knowledge base