Domain Name Service.

  • transport layer service used: UDP or TCP
  • port number: 53

    Services provided by DNS

    Centralized database vs. Distributed database.

    Disadvantages of the centralized approach: Distributed DB: Example: host dementiev.marshall.edu wants to connect to a web server athabasca.library.emory.edu.
    1. First it sends a request to a Marshall name server
    2. If Marshall name server doesn't know the IP of athabasca.library.emory.edu , it sends a query to a root server responsible for .edu addresses
    3. The root server most probably doesn't know the answer either, but it knows the IP of the name server of the emory.edu network. So, it sends a query to that server.
    4. Assume emory.edu name server doesn't remember the needed address, but it knows the IP of the name server of the library.emory.edu network and sends the query there
    5. Since host athabasca belongs to this network this name server is the authoritative name server for the host. That is, library.emory.edu knows the IP. It sends it back to emory.edu name server
    6. name server of the emory.edu network response to the root server
    7. the root server sends the answer to the Marshall local name server
    8. Marshall local name server sends it to the asking host.

    DNS records

    The name servers that together implement the DNS database store resource records for the hostname-to-IP mappings. Each DNS reply carries one ore more resource records. A resource record is a four-tuple that contains the following fields:
    (Name, Value, Type, TTL)
    where TTL (time to live) determines the time the record should be stored in a cache. It's an integer number containing the number of seconds.

    The meaning of Value and Name depend on Type:
    Type Name Value Example
    A hostname IP address for the hostname (ist.marshall.edu, 206.212.61.157, A, 3600)
    NS domain hostname of an authoritative name server that knows how to obtain the IP s for hosts of the domain (marshall.edu, mudnsa.marshall.edu, NS, 36000)
    CNAME alias canonical hostname (www.yahoo.com, www.yahoo.akadns.net, CNAME, 600)
    MX mail alias canonical name of the mail server (hotmail.com, mx4.hotmail.com, MX, 86400)
    Other types

  • HINFO -- the host CPU and operating system type
  • MINFO -- the mailbox or mail list information.
  • PTR -- the host name if the query is an Internet address; otherwise, the pointer to other information
  • SOA -- the domain's "start-of-authority" information.
  • TXT, UINFO, WKS, ANY, AXFR, MB, MD, MF, NULL are described in the RFC-1035 documentation.

    NSLookUp

    Very useful tool. Available via a web interface even via two inerfaces. Find more information about it on the manual page or in the Microsoft knowledge base.

    Official documentation:

  • Domain Names - Concepts and Facilities
  • Domain Names - Implementation and Specification