Intro to Networking - Domain Name System (DNS)

 Overview


 This article gives a basic explanation of what the DNS is used for, how it works and how it could apply in the Enterprise environment.

Table of Contents


  1. What is DNS?
  2. What are DNS Servers?
  3. DNS in the Enterprise
  4. Related Articles

What is DNS?


Back to Top

Whenever a Network Host needs to send IP packets to a domain or hostname (e.g., "ubnt.com"), it must provide an actual IP address in the Layer-3 Destination Address. The Domain Name System (DNS) allows administrators to cache domains & hostnames, which are mapped to IP addresses for query. In this way, a Network Host configured with a DNS server can look up the actual IP address belonging to the intended domain/hostname.

dns-lookup-internet.png
An overview of DNS lookup, before sending Internet traffic to the web server hosting "ubnt.com".

 


What are DNS Servers?


Back to Top

DNS servers are generally classified as recursive or authoritative. Assuming no cache exists, a network host will typically query its gateway, which performs DNS forwarding to first query the recursive DNS server. If the recursive DNS server has no valid entry, it will contact the authoritative DNS server responsible, until the specific record for the domain is retrieved. For example:

  1. Network Host's DNS server configured as Local Gateway, "whois ubnt.com"?
  2. Local Gateway forwards DNS Query to Recursive Server, "whois ubnt.com"?
  3. Recursive Server contacts Authoritative Server(s), in following order:
    1. Root DNS Server (the master server containing hierarchical info about top-level domain servers)
    2. Top-Level Domain Server (the server responsible for ".com" top-level domain)
    3. Sub Domain Servers (the server responsible for "ubnt.com" domain)

DNS is frequently compared to a phonebook, where persons/businesses (i.e., hostnames, domains) have their phone number listed (i.e., the Destination IP address).


DNS in the Enterprise


Back to Top

Suppose an enterprise network wants to assign hostnames by geographic location to each of Router Sites (rather than recall their IP address). To access Router “California” via SSH or HTTPS, a Network Host queries the designated DNS server for the enterprise (ex. Linux server running BIND), asking whois “California”, receives the IP, then writes in the Destination IP Address to the SSH / HTTPS packets it needs to send.


Related Articles


Back to Top

Read our other introductory networking articles in the Intro to Networking section.