TCP/UDP-based application : Domain Name System

 


Motivation

therefore, name -> IP translation necessary

 


Domain Name System

DNS is naming scheme. Some facts about domain names:

 


DNS Client-Server Model

 


Name Resolution

  1. Resolver supplied as library function, e.g. gethostbyname().
  2. Resolver sends local name server DNS request message containing name.
  3. Name server (authority) does database lookup.
  4. If name found (e.g., within its authority), it returns IP address as structure in DNS reply message.
  5. If name NOT found, server becomes client in request to root server.
  6. Root server returns address of suffix (organization) name server.
  7. Authority then becomes client in request to suffix server.
  8. Suffix server returns name of the subordinate name server.
  9. This is repeated until name server containing address is contacted and responds.
  10. Finally, original name server returns IP address to your program.

 

  


Related Home Pages: notes | CSC 465 | Peter Sanderson | Computer Science | SMSU


Last reviewed: 22 April 1998

Peter Sanderson ( pete@csc.smsu.edu )