# DNS: How the Phone Book of the Internet Works

> The Domain Name System translates names into IP addresses. Structure, lookup, records, TTL and security explained step by step.

- URL: https://techbrevier.com/en/blog/dns/
- Author: [Sabine Clarke](https://techbrevier.com/en/author/sabine-clarke/), Editor, Tech Fundamentals
- Published: 26 November 2026
- Other languages: DE https://techbrevier.com/blog/dns/

## In short

The Domain Name System (DNS) translates names such as techbrevier.com into the IP addresses that computers need. To do this, a resolver queries root servers, TLD servers and the responsible name server one after the other. Caches keep the answers for a set time. DNSSEC protects the answers against forgery; DNS over HTTPS encrypts the route.

- **Task:** DNS maps domain names to IP addresses and other data.
- **Hierarchy:** Names form a tree, from the root zone via the top-level domains to the individual domain.
- **Resolution:** A recursive resolver handles the search and caches results.
- **Records:** Entries such as A, AAAA, MX or CNAME define where a name points.
- **Security:** DNSSEC signs answers. DoH and DoT encrypt the query.

## What is DNS?

The Domain Name System (DNS) is a globally distributed directory that translates names into IP addresses. Computers find each other on the network using numbers. People prefer to remember names. DNS connects the two.

Paul Mockapetris laid the foundation in November 1987 with the standards RFC 1034 and [RFC 1035](https://www.rfc-editor.org/rfc/rfc1035). They still describe how names are structured and how servers answer queries. The image of a phone book captures the essence. You look up a name and get a number back (just without the thick paper book).

The number is an IPv4 address such as 192.0.2.10 or a longer IPv6 address.

## How is DNS structured?

DNS is hierarchical, like an upside-down tree. At the top is the root zone. Below it are top-level domains (TLDs) such as .de, .com or .org. Then come the domains themselves and any number of subdomains.

Each level of a name is called a label. According to RFC 1035, a label may be at most 63 bytes long. The full name must not exceed 255 bytes. The name www.techbrevier.com therefore consists of three labels plus the invisible root at the end.

Responsibility in DNS is distributed. Each zone has its own authoritative name servers. IANA manages the root zone. The .de zone is operated by the DENIC cooperative in Frankfurt am Main. According to [DENIC](https://www.denic.de/), 18,461,186 .de domains are currently registered (as of 20 November 2026).

| Level | Example | Responsible |
| --- | --- | --- |
| Root zone | . (dot) | IANA, 12 root server operators |
| Top-level domain | .de, .com | registry, e.g. DENIC for .de |
| Second-level domain | techbrevier.com | domain holder |
| Subdomain | www.techbrevier.com | domain holder |

## How does a DNS lookup work?

A DNS lookup runs via a recursive resolver, which puts the answer together step by step. It is usually provided by your internet provider or your company network. Your computer only asks this resolver. The resolver does the rest.

- The browser checks its own cache and that of the operating system.
- If there is no hit, the query goes to the recursive resolver.
- The resolver asks a root server who is responsible for .com.
- The TLD server for .com names the name servers of techbrevier.com.
- The authoritative name server returns the IP address.
- The resolver returns the answer and caches it.

The process is a small [algorithm](https://techbrevier.com/en/blog/algorithm/) with fixed steps and a clear end. The query uses port 53, usually over UDP. Classic UDP messages were limited to 512 bytes by the standard. Larger answers use TCP or the EDNS extension.

The computer asking is the client. The name server answering is a server.

## What do the root servers do?

The root servers are the entry point for every resolution that is not already in the cache. There are 13 root server identities with the letters A to M. According to [root-servers.org](https://root-servers.org/), 12 independent organisations operate these identities. Behind them are 2,046 instances worldwide (as of 20 November 2026).

13 names therefore do not mean 13 computers. Using anycast, many locations share the same address. A query lands at the nearest location. This shortens routes and reduces latency.

A root server does not know the IP addresses of websites. It only refers to the servers of the correct top-level domain.

## What DNS records are there?

DNS records are the entries of a zone. Each type answers a different question. Most basic types are already defined in RFC 1035. AAAA for IPv6 was added later with RFC 3596.

| Type | Purpose | Example value |
| --- | --- | --- |
| A | IPv4 address | 192.0.2.10 |
| AAAA | IPv6 address | 2001:db8::10 |
| CNAME | alias for another name | www points to techbrevier.com |
| MX | mail server of the domain | mail.example.com |
| NS | responsible name servers | ns1.example.net |
| TXT | free text, e.g. for SPF | v=spf1 mx -all |
| PTR | reverse lookup from IP to name | 10.2.0.192.in-addr.arpa |
| SOA | master data of the zone | serial number, time values |

The benefit is particularly clear with email. A mail server looks up the MX record to see where to deliver a message to example.com. If the entry is missing, the email does not arrive.

## What does TTL mean in DNS?

The TTL (time to live) defines how long a resolver may cache an answer. RFC 1035 defines it as a time span in seconds. If it is set to 0, the answer only applies to the current query.

A high TTL reduces load; a low TTL adds flexibility. A TTL of 86,400 seconds corresponds to one day. For that long, users may still see the old address after a change. Administrators therefore often lower the TTL a few days before a server move.

Browsers and operating systems also keep their own caches. If a page still shows the old state after a change, clearing the browser cache often helps (a classic in IT support).

## How secure is DNS?

The original DNS does not check whether an answer is genuine. Attackers can therefore smuggle forged entries into a resolver's cache. Experts call this cache poisoning. Users then end up on a wrong page without warning.

DNSSEC closes this gap with digital signatures. According to [ICANN](https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-05-en), zone holders sign their data, and resolvers check the signature before answering. The root zone has been signed since 2010. A resolver treats an invalid signature as an attack and discards the data.

DNSSEC does not encrypt anything. It only proves authenticity. Anyone who wants to protect the query from eavesdroppers uses DNS over TLS (DoT) or DNS over HTTPS (DoH). DoH has been standardised as [RFC 8484](https://www.rfc-editor.org/rfc/rfc8484) since October 2018.

Germany's [BSI](https://www.bsi.bund.de/EN/Themen/Regulierte-Wirtschaft/Weitere_regulierte_Unternehmen/Internet_Service_Provider/Internet-Service-Provider.html) has published recommendations on the secure provision of DNS services and on implementing DNSSEC. They are aimed at domain holders, registrars and operators.

## How do you check DNS records?

With built-in tools, you can query DNS records yourself in a few seconds. Windows, macOS and Linux include suitable tools.

- nslookup techbrevier.com shows the IP address.
- dig techbrevier.com MX shows the mail server (macOS and Linux).
- ipconfig /flushdns clears the DNS cache on Windows.

The output of dig also shows the remaining TTL. This lets you see how long an answer will stay in the cache.

## Frequently asked questions

### What happens if DNS fails?

Then names can no longer be translated into addresses. Websites and email are barely reachable, even though the servers are running. Cached answers bridge short outages until the TTL expires.

### Can I use a different resolver?

Yes. A different resolver can be entered in the network settings of the router or operating system. Check beforehand who operates it and how it handles your query data.

### What is the difference between a domain and an IP address?

The domain is the readable name. The IP address is the technical address of a server. DNS connects the two, and several domains can point to the same address.

### How long does a DNS change take?

That depends on the TTL of the old entry. Resolvers may keep the old answer until it expires. With a TTL of one hour, the change is usually visible everywhere after about an hour.

### Who manages domains under .de?

The registry for .de is DENIC in Frankfurt am Main. You usually register a domain through a provider, which forwards the order to DENIC.

## Sources

1. [RFC 1035](https://www.rfc-editor.org/rfc/rfc1035), rfc-editor.org
2. [DENIC](https://www.denic.de/), denic.de
3. [root-servers.org](https://root-servers.org/), root-servers.org
4. [ICANN](https://www.icann.org/resources/pages/dnssec-what-is-it-why-important-2019-03-05-en), icann.org
5. [RFC 8484](https://www.rfc-editor.org/rfc/rfc8484), rfc-editor.org
6. [BSI](https://www.bsi.bund.de/EN/Themen/Regulierte-Wirtschaft/Weitere_regulierte_Unternehmen/Internet_Service_Provider/Internet-Service-Provider.html), bsi.bund.de
