Internet Guide Logo

Nameservers

Last Edit: 10/01/17

Introduction

The Domain Name System (DNS) is a naming system that maps domain names to IP addresses (hosts). The Domain Name System has a hierarchy of domains: root zone > top level domains > second level domains > third level domains. End users can register a namespace (domain name), referred to as a second level domain in a top level domain: for example: the second level domain google in the com top level domain. Second level domain names are registered - for it's owner - by a registrar at a top level domain registry; a registrar is a company that has been certified by ICANN; ICANN manage the Domain Name System and a registry is a company, accredited by ICANN, that manages top level domains. When a domain name is registered, a DNS (Domain Name System) record is created for it. The DNS record for a domain name must contain two or more nameservers; the nameservers handle DNS services for the second level domain. Shown below, is an example of how a nameserver is written (in a DNS record):

  1. ns.example.co.uk
  2. ns2.example.co.uk
  3. ns3.example.co.uk
  4. ns4.example.co.uk

The nameserver information is managed by the registrar of the domain name. A registrar will change nameserver information on behalf of the owner, or, the owner can login to the website of the registrar and change it themselves. Any change to the nameservers of a domain name will be updated by the central registry for that domain; it may take 24-48 hours for the registry to change the record. The registrar is a 'middleman' between the owner of the domain name and the 'owner' of the domain.

bullet So, what is the purpose of a nameserver?

The purpose of a nameserver is to store DNS records for domain names and to respond to queries made to it. There are a range of different nameservers: root nameservers, authoritative nameservers, caching nameservers and non-authoritative nameservers. There are different DNS record types, such as: A, AAAA, CNAME, NSEC, NS and MX records. The root nameservers are the ultimate authority for resolving naming issues, but the majority of DNS queries are handled by DNS resolvers; root nameservers would struggle to cope if all queries were routed to them.

For example, when a user is surfing the World Wide Web, the following happens:

  1. A user will enter a domain name into the address bar of a web browser.
  2. The users computer will then use the DNS nameserver of the users ISP (Internet Service Provider) to retrieve the IP address for that domain name.
  3. The ISP DNS nameserver usually features caching and recursive functions to store DNS records; improves efficiency and increases performance.
  4. If the ISP namesever does not have a cache for the domain name it will use a Domain Name Resolver - also named a DNS resolver - to locate the IP address of the domain name.
  5. The Domain Name Resolver will ask an authoritative nameserver if it knows the IP address or primary nameserver for the domain name.
  6. The Domain Name Resolver will find a resolution for the query and retrieve the IP address for the domain name.
  7. The ISP DNS nameserver will then provide the user with the IP address of the domain name.
  8. The user's web browser will then use the IP address and Internet routing protocols to retrieve any resource located at the IP address (web document).
  9. The browser will then render the web document for the user.

DNS nameservers handle DNS queries by using software like BIND (Berkeley Internet Name Domain); which includes a resolver library. Using software, like BIND, end users can operate their own nameserver.