Name server

Name server

A name server is a specialised computer application that provides responses to queries directed at a directory service within a network. Its primary purpose is to translate human-readable identifiers—such as domain names—into system-level numerical addresses, most notably Internet Protocol (IP) addresses, thereby facilitating communication between devices on interconnected networks. Name servers operate according to established communication protocols and form a core element of global Internet infrastructure.

Background and Purpose

The Internet relies on two principal namespaces: the domain name hierarchy and the IP address system. Domain names offer a convenient, memorable method for identifying online resources, while IP addresses supply the numerical system required for routing and connectivity. The Domain Name System (DNS) maintains the domain namespace and enables translation between these two systems.
DNS name servers support this process by storing and serving DNS records. They preserve essential data such as A (IPv4), AAAA (IPv6), NS (Name Server), and MX (Mail Exchanger) records, and provide responses to user and system queries. By resolving domain names to IP addresses, name servers ensure that users can access websites and resources without needing to memorise numerical identifiers.
At the top of the DNS hierarchy sits the root nameserver, operated under the authority of the Internet Corporation for Assigned Names and Numbers (ICANN). Below this level, domains are organised in a cascading hierarchy and delegated to registries, registrars, and domain name holders who maintain administrative responsibility for individual zones.

Structure and Operation of DNS Name Servers

A DNS name server stores its data in defined zones and responds to queries by referencing the records within those zones. The core operational components include:

  • Zone Files: These contain all necessary resource records for a domain.
  • NS Records: These specify the authoritative name servers for a zone.
  • SOA (Start of Authority) Records: These identify the primary authoritative server and associated administrative information.
  • Glue Records: These provide IP addresses for name servers when their hostnames fall within the domain they serve.

In practice, each fully qualified domain name appears within a specific zone, which is served by one or more authoritative name servers. Domain registration processes ensure that registrars collect the relevant authoritative name server information from zone administrators and then supply this data to the appropriate top-level domain registry.

Types of Name Servers

DNS name servers are broadly classified into two principal categories: authoritative and recursive. A single server may implement multiple roles, although modern best practices often favour separation for security and performance reasons.

Authoritative Name Servers

Authoritative name servers supply definitive responses to queries concerning the domain names for which they hold responsibility. Their responses are marked by the Authoritative Answer (AA) flag, indicating that the information originates from a recognised authority for that zone.
Key types of authoritative servers include:

  • Primary (Master) Servers: These host the original, definitive copies of a zone’s data. Their identity is specified in the SOA record, and zone contents are either manually configured or updated using mechanisms such as Dynamic DNS.
  • Secondary (Slave) Servers: These maintain read-only copies of the primary zone data through automatic update processes, including zone transfers. They enhance redundancy and reduce the load on primary servers.

Delegation within the DNS requires that the parent zone be configured with the NS records for its child zones. When the name server for a child domain resides within that same domain, the parent must additionally host glue records to ensure that resolvers can locate the relevant servers correctly.

Recursive Resolvers

A Recursive Resolver accepts queries that request a full resolution process. When the resolver lacks cached information, it initiates a sequence of queries across the DNS hierarchy:

  1. It begins at the root zone.
  2. It queries the appropriate top-level domain servers.
  3. It proceeds through successive levels until reaching the authoritative server for the target domain.

The resolver then returns the result to the client. Recursive resolvers perform all required resolution steps on behalf of users employing stub resolvers, which typically exist within operating systems and simple network devices.

Caching Name Servers

Caching name servers store DNS responses for durations dictated by the time-to-live (TTL) values of the records. By retaining answers to previous queries, caching servers:

  • reduce DNS traffic across the Internet,
  • lighten the load on authoritative servers,
  • and accelerate access for end-users.

Caching servers are frequently combined with recursive resolvers, a configuration commonly used by Internet service providers and home networking equipment such as routers. While some operating systems use supplementary caching mechanisms such as the name service caching daemon, these approaches typically operate at a local rather than DNS-authoritative level.

DNS Resolution and Authoritative Responses

When a name server provides an authoritative answer, it does so only for zones under its direct control. Parent zones, or unrelated authoritative servers, do not mark their responses as authoritative if they are merely providing delegation information rather than definitive data. This distinction helps maintain integrity, ensuring that resolvers correctly identify trusted sources for DNS information.
Authoritative and recursive functions can coexist within a single server, but separation is widely recommended to mitigate risks such as cache poisoning and to maintain predictable performance.

Role in Internet Infrastructure

Name servers form a vital component of Internet architecture. Their hierarchical distribution allows DNS to function as a scalable, resilient, and globally synchronised system. The DNS ensures continuity of online services, supports email delivery through MX record processing, and governs crucial aspects of domain administration. It also enables the entire Internet ecosystem to operate efficiently through distributed resolution, caching, and delegation.
The combination of authoritative, recursive, and caching servers ensures that DNS queries can be resolved rapidly and reliably, preserving the stability and usability of both small-scale networks and the global Internet.

Originally written on January 4, 2017 and last modified on November 24, 2025.

Leave a Reply

Your email address will not be published. Required fields are marked *