Skip to content

Domain Name System

Written by GPT-6 Luna from the web 19 of 56 sentences cited

An AI wrote this article, and it can be wrong.

The Domain Name System (DNS) is the Internet’s hierarchical, distributed database for associating domain names with information about network resources and services. It is best known for helping computers find Internet addresses from names such as `, but it also directs email and publishes other kinds of data.12

DNS matters because it lets people and applications use stable, memorable names without embedding numerical network addresses in those names. Its distributed design lets many organizations maintain different parts of the system, while resolvers and caches make information available without one central server handling every request.1

Structure

DNS names form a hierarchy read from right to left, with the root at the top. In , .com is the top-level domain, example is a name beneath it, and www` is a further label; a final dot can represent the root, though it is usually omitted in everyday use. Names are built from labels separated by dots, and the system’s rules allow a broader range of label data than the familiar forms used in web addresses.1

The database is divided into administrative units called zones. A zone contains information managed by an authority and may delegate responsibility for a lower-level part of the name tree to another authority. This division means that the hierarchy of names and the organization of the database are related, but not identical: one domain can include multiple zones, each served by its own authoritative name servers.13

At the top is the DNS root zone, which contains referrals to top-level domains rather than a complete directory of every Internet name. The Internet Assigned Numbers Authority (IANA) maintains the root-zone record of top-level domains and their technical delegation information. Top-level domains include generic domains such as .com and country-code domains such as .in; their operators manage the zones below them according to their respective arrangements.45

Resolution

When an application needs information about a name, it typically asks a local stub resolver, which passes the request to a recursive resolver. If the requested information is not already in the resolver’s cache, the resolver follows the hierarchy by asking name servers for directions toward the relevant zone. Root servers can point it to a top-level domain’s servers, which can in turn direct it toward servers authoritative for the requested name.61

An authoritative server answers from information it holds for a zone; a recursive resolver seeks an answer on behalf of a client and can return a cached result. A name server that lacks the answer may instead send a referral to another server closer to the part of the hierarchy that holds it. Caching reduces repeated queries, but cached answers are retained only for a period specified by the data’s time-to-live value.61

Root servers do not each represent a single physical machine. ICANN reports that 12 independent operators manage 13 root-server identities, which are served by more than 1,500 individual servers distributed around the world. Anycast routing allows a root-server identity to be provided from multiple locations, helping a query reach an appropriate instance without changing the identity’s address.78

Records and uses

DNS stores resource records, each of which associates a name with a particular type of information. An A record gives an IPv4 address, an AAAA record gives an IPv6 address, an MX record identifies mail-exchange servers, an NS record identifies name servers, and a CNAME record gives an alias’s canonical name. These are among the commonly used record types; the DNS specifications also allow the system to be extended with additional types.21

A lookup asks for a name and a record type, so the system can provide different information about the same name. A web browser may request an address record, while a mail system may request the domain’s mail-exchange records. DNS is therefore not simply an address book: it is a general, though structured, database used by different Internet protocols and services.12

Origins and history

Before DNS, host names and network addresses were distributed through a centrally maintained file called HOSTS.TXT. As the network grew, keeping a single file current and distributing updates to participating computers became increasingly difficult. The 1987 DNS specification describes the system’s development as a response to that growth and identifies distributed administration and local caching as important design goals.19

Paul Mockapetris published the first DNS specifications, RFC 882 and RFC 883, in November 1983. Those documents set out the system’s concepts and technical implementation; the later RFC 1034 and RFC 1035, published in November 1987, superseded them as the principal specifications. The original design established a hierarchy of names and a distributed database, rather than requiring each host to obtain all name-to-address mappings from one central list.101119

Administration

DNS is operated through many independently managed zones, rather than a single database maintained by one organization. A zone operator manages its records and authoritative servers, while parent zones publish delegations that identify the servers responsible for child zones. For top-level domains, the root zone records the delegation information needed to direct queries to the relevant top-level-domain servers.14

The root-server system is also distributed among independent operators. Its 13 identities provide the same root-zone information, while their many physical instances serve queries at different locations. This distinction matters: the count of root-server identities is not the count of machines, nor does an individual root server hold all the records for every domain.78

Security and privacy

The original DNS protocol did not include a general mechanism for verifying that a response was authentic. A forged or altered response can misdirect a user or application; cache poisoning is one form of attack in which false DNS information is inserted into a resolver’s cache. DNSSEC, a set of security extensions, adds cryptographic signatures that allow validating resolvers to check the origin and integrity of DNS data and to verify certain claims that a name does not exist.1213

DNSSEC does not encrypt queries or responses, and it does not provide confidentiality. DNS privacy standards address a different problem: DNS over TLS and DNS over HTTPS carry queries through encrypted connections, helping protect them from observation or interference between a client and its chosen resolver. These mechanisms protect that connection, but do not by themselves prevent the resolver from seeing the queries it handles.131415

Other standards seek to reduce how much information a resolver reveals while it follows the DNS hierarchy. QNAME minimisation limits the name information sent to upstream servers when they only need enough detail to provide a referral. It is one privacy measure, not a complete solution to DNS privacy risks.16

Current development

DNS continues to be extended through standards and operational guidance. Modern implementations must support both UDP and TCP; TCP is important for cases where a response is too large for a UDP exchange, among other uses. DNS over TLS and DNS over HTTPS add encrypted transport options, while DNSSEC addresses authentication and integrity of DNS data. These mechanisms have distinct purposes and are not substitutes for one another.17141513

In March 2026, the National Institute of Standards and Technology published Revision 3 of its Secure DNS Deployment Guide. It covers the different roles of DNS services and recommends measures for protecting their integrity, availability, and confidentiality, including DNSSEC and protections for recursive queries. The guidance reflects DNS’s continuing importance to organizational networks: failures or attacks affecting DNS can disrupt many services that depend on it.1819

References

19 sources
  1. rfc-editor.org/rfc/rfc1035.htmlrfc-editor.org· cited 3×

  2. Root Zone Managementiana.org· cited 2×

  3. RFC 8499: DNS Terminology | RFC Editorrfc-editor.orgJan 2, 2019· cited 2×

  4. RSSAC FAQicann.org· cited 2×

  5. RFC 8484: DNS Queries over HTTPS (DoH)datatracker.ietf.org· cited 2×