The Domain Name Service (DNS)

A name is a human-readable label assigned to a system.

An address is the basic routing identifier used to locate a system in the network.

Mapping between the two is performed using the domain name service. This is an example of a client/server system which is used by the Internet Protocol (IP) Suite to resolve the logical names of nodes in an IP network to an IP address (see also arp - which is used to resolve Ethernet addresses to IP addresses).

Resolution query: The term address resolution refers to the process of finding an address of a computer in a network. The address is "resolved" using a protocol in which a piece of information is sent by a client process executing on the local computer to a server process executing on a remote computer.

Resolution response: The information received by the server allows the server to uniquely identify the network system for which the address was required and therefore to provide the required address. The address resolution procedure is completed when the client receives a response from the server containing the required address. Resolution may require recursive lookup on one or more DNS servers to finally receive an authoritative answer. Recursion involves searching multiple databases until the result is retrieved or it is concluded the name is unknown.

Cache: A key point to be noted is that the system is requested by an application and the results are cached - so that the lookup does not need to be performed for every single use. In DNS the information provider determines the cache time - vastly different values are used for different applications (small where there is a churn of addresses, large for main infrastructure stability where change is not envisaged).

The address resolution procedure is completed when the client receives a response from the server containing the required address. this is then used as the IP destination address. Next hop resolution provides a MAC address based on this IP address.

The Domain Name Service is an example of a client/server system that is used by the Internet Protocol (IP) Suite to resolve the logical names of nodes in an IP network to an IP address (see also arp - which is used to resolve Ethernet addresses to IP addresses).

Example of the use of the DNS

This example considers a login from a computer X to a remote computer Y using a DNS server Z. The process is shown in the figure below:

The process may be described in six steps:

  1. A client program starts on the local computer (X) and attempts to resolve the network layer address of the remote computer from a known name using a known dns server (Z).
  2. A dns query is sent to the server in an IP packet from X to Z.
  3. The server (Z) processes the query and consults local dns entries and (possibly) the entries of other remote dns servers.
  4. The dns server returns a response with the requested information (assuming success) in an IP packet from Z to X.
  5. The local computer (X) then makes a direct connection to the remote computer (Y).
  6. The remote computer starts a process (server) to handle the requested login. All further packets between X and Y are directed to the respective client and server processes.

The Story of the DNS

Once there were only a few computers connected to the first internet, called the ARPANET, at that time everyone knew each others IP address, so communication was easy, one simply typed the appropriate sequence of digits representing the IP number for each destination.

After a while, the number of computers started to grow, and people began to forget the strange numeric IP numbers. So IP names came into being, and each computer held a table of names and their associated addresses, which had to be updated as new computers were connected to the network.

Soon new computers were being connected to the network too quickly for everyone to keep up. Someone had the bright idea of keeping just one central list, and such a list was created and stored at Stanford University. Too add a new computer, one simply told the people at Stanford, and they added your name and IP address to the list. Every week, or so, you had to transfer the list to your own computer (using ftp).

A little while passed, and the network grew. Eventually, there were just too many computers, the people at Stanford became overloaded with requests to add and change the network information: the file of all addressees was getting too big, and there was a constant demand for the users to download new copies of the file. The solution was to create a distributed database - called the Domain Name System (DNS).

In the DNS, there are a set of root domain servers (rather like the old Stanford computer), but they don't actually store much information. Instead they contain the IP addresses of other servers which have information about specific groups of addresses known as "domains". The root server is said to delegate responsibility for each domain to a lower domain server. In turn, each of these servers may delegate other domains to other servers. Before long, there were many many domain servers each responsible for the groups of users in a local area. Each server maintained pointers allowing them to find out information about other domains by sending query messages to the other domain servers. In this way, any DNS server can resolve the name of any computer to an IP address of any user irrespective of whether that user is in the same local domain or is registered with some remote domain.

DNS Operation

DNS Service:

Mapping between the name and address is performed using the domain name service. This is an example of a client/server system which is used by the Internet Protocol (IP) Suite to resolve the logical names of nodes in an IP network to an IP address (see also arp - which is used to resolve Ethernet addresses to IP addresses).

Resolution query:

The term address resolution refers to the process of finding an address of a computer in a network. The address is "resolved" using a protocol in which a piece of information is sent by a client process executing on the local computer to a server process executing on a remote computer. The client resolver must be pre-configured with the IP address of the DNS server.

Resolution response:

The information received by the server allows the server to uniquely identify the network system for which the address was required and therefore to provide the required address. Resolution may require recursive lookup on one or more DNS servers to finally receive an authoritative answer. Recursion involves searching multiple databases until the result is retrieved or it is concluded the name is unknown.

DNS resolver cache:

A key point to be noted is that the system is requested by an application and the results are cached - so that the lookup does not need to be performed for every single use. In DNS the information provider determines the cache time - vastly different values are used for different applications (small where there is a churn of addresses, large for main infrastructure stability where change is not envisaged).

Use of information the DNS information from the stub resolver:
The address resolution procedure is completed when the client receives a response from the server containing the required address. this is then used as the IP destination address. Next hop resolution provides a MAC address based on this IP address.

Standards Documents:

P.V. Mockapetris, Domain names - concepts and facilities, RFC1034


Gorry Fairhurst - Date: 16/12/2003