Browse topics

Recently published

Technology & Digital Life · Explainer

What is DNS? How the internet's address book works

Every time you type a web address, a fast, invisible lookup finds the right computer to talk to. That system is DNS, and it shapes your browsing speed, privacy and security.

Laptop showing a browser address bar with glowing network lines behind it
Illustration

Short answerDNS, the Domain Name System, is the internet's address book. Computers find each other using numerical IP addresses, but people prefer names like allinformations.com. When you type a web address, your device asks a DNS resolver to look up the matching IP address, checking caches first and, if needed, asking a chain of name servers. Your browser then connects to that address.

Key takeaways

  1. DNS translates human-friendly names into IP addresses.
  2. Your device usually uses a DNS resolver run by your internet provider.
  3. Answers are cached to make repeat lookups very fast.
  4. You can switch to other DNS providers for speed, privacy or filtering.
  5. Many "site not found" errors are DNS problems.

Why we need DNS

Devices on the internet are identified by IP addresses, such as 192.0.2.10 for IPv4 or a longer IPv6 address. Remembering numbers for every website would be impossible, and sites move between servers. DNS lets names stay the same while the addresses behind them change. Our guide to what an IP address is explains the numbers DNS points to.

How a DNS lookup works, step by step

  1. You type a name, such as www.example.com, into your browser.
  2. Your device checks its cache for a recent answer.
  3. If none, it asks a resolver, usually run by your internet provider or a public DNS service.
  4. The resolver asks a root server, which points to the servers for ".com".
  5. The .com servers point to the name servers responsible for example.com.
  6. The authoritative name server gives the IP address.
  7. The resolver returns the answer to your device and caches it.
  8. Your browser connects to the website's server.

All of this usually takes a few milliseconds, and most lookups are answered from caches.

The parts of a domain name

PartExampleMeaning
Top-level domain (TLD).com, .uk, .orgThe highest level after the root
Second-level domainexample in example.comThe name registered by an organisation
Subdomainwww, mail, shopSections set up by the domain owner

Root servers

At the top of DNS are 13 named root server identities, operated by different organisations. Each is actually a network of hundreds of servers around the world sharing the same address, so the system is very resilient. They don't know every website's address, only which servers handle each top-level domain.

Caching and TTL

Each DNS answer has a "time to live" (TTL), which tells resolvers and devices how long to keep it before checking again. Caching makes browsing faster and reduces load on name servers. It also explains why website changes to DNS can take time to be seen everywhere, often called "propagation".

Common DNS record types

RecordWhat it does
APoints a name to an IPv4 address
AAAAPoints a name to an IPv6 address
CNAMEMakes one name an alias of another
MXSays which servers handle email for the domain
TXTHolds text used for verification and email security
NSLists the domain's authoritative name servers

Who runs your DNS?

By default, your home router hands out your internet provider's DNS servers to your devices. You can instead use public resolvers run by other organisations, which some people choose for speed, reliability, privacy policies or built-in filtering of malicious sites.

Should you change your DNS server?

Possible benefits

Faster lookups in some areas, better uptime, malware or adult-content filtering, and encrypted DNS options.

Things to consider

Your provider's DNS may be closest and fastest; changing it moves trust to another company, so read its privacy policy.

How to change DNS settings

You can change DNS on your router, which affects every device on your network, or on individual devices in network settings. Many phones and browsers also have a "secure DNS" or "private DNS" option. Changing router settings is part of good home network setup, covered in securing your home Wi-Fi router.

DNS and privacy

Traditional DNS requests are not encrypted, so your provider and anyone on the network path can see which domains you look up. DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt these lookups. They hide queries from the local network, though the resolver you use can still see them.

DNS and security

Attackers can abuse DNS by redirecting users to fake sites, a technique called DNS spoofing or cache poisoning. DNSSEC adds digital signatures to DNS records so resolvers can verify answers haven't been tampered with. Phishing sites often use look-alike domain names, so checking the address carefully remains important, as explained in how to spot a phishing email.

Common DNS errors

  • "DNS server not responding": your device can't reach the resolver, often due to router or connection problems.
  • "Server IP address could not be found": the name doesn't resolve, perhaps a typo or a site that no longer exists.
  • "DNS_PROBE_FINISHED_NXDOMAIN": the domain doesn't exist in DNS.

Quick fixes for DNS problems

  1. Check the address for typos.
  2. Restart your router and device.
  3. Try another device or network to narrow the problem.
  4. Flush your DNS cache, which on Windows is ipconfig /flushdns in Command Prompt.
  5. Try a different DNS server temporarily.

DNS and website owners

When you buy a domain, you set its name servers, often at your registrar or web host, and add records such as A records for your website and MX records for email. Email security records such as SPF, DKIM and DMARC, stored as TXT records, help stop criminals sending fake emails from your domain.

A short history of DNS

In the early internet, a single file called HOSTS.TXT listed every computer's name and address and was copied around manually. As the network grew, this became unworkable. Paul Mockapetris designed DNS in 1983, creating the distributed, hierarchical system still used today.

How DNS makes websites faster

Large websites use DNS to send visitors to the nearest server in a content delivery network. When you look up a popular site, the answer you get may point to a server in your own country, while someone on another continent gets a different address. This shortens the distance data travels and spreads traffic across many servers.

DNS filtering for families

Some public DNS services offer family filters that block known adult or malicious websites for every device on your network, without installing software. Set them on your router to cover all devices. Filters aren't perfect and can be bypassed, so combine them with open conversations about online safety.

Seeing DNS in action

On Windows, open Command Prompt and type nslookup followed by a domain name to see the IP address it resolves to. On Mac and Linux, dig gives even more detail, including the record's TTL. It is a simple way to confirm whether a DNS change has taken effect.

DNS and your router

Most home routers act as a small DNS relay. Devices on your network send lookups to the router, which forwards them to your chosen resolver and caches the results. Restarting the router clears this cache, which is why a reboot sometimes fixes sites that won't load. Keeping your router's firmware up to date protects against attacks that change its DNS settings to point you at fake sites.

DNS jargon quick guide

TermMeaning
ResolverThe server that looks up answers for you
Authoritative serverHolds the official records for a domain
RegistrarWhere you buy and manage a domain name
PropagationThe time for old cached answers to expire

Why DNS outages make headlines

Because almost every online service depends on DNS, a failure at a major DNS provider can make many popular websites unreachable at once, even though their servers are working fine. Large organisations reduce this risk by using more than one DNS provider, so a problem with one doesn't take everything offline.

Final thoughts

DNS quietly turns every name you type into an address your device can reach, using a worldwide network of servers and clever caching. Knowing how it works helps you fix connection errors and make informed choices about speed, privacy and security. Explore more in Technology & Digital Life on All Informations, including Wi-Fi bands explained.

Sources and further reading

These official and reference pages support the key facts in this guide and are good places to read more. All Informations checked every link on 25 November 2026.

Frequently asked questions

What does DNS stand for?

Domain Name System.

What does DNS do?

It translates domain names such as example.com into IP addresses computers use.

Is it safe to change my DNS server?

Yes, using a reputable provider; check its privacy policy first.

Why does DNS change take time?

Old answers stay cached until their time to live (TTL) expires.

What is DNS over HTTPS?

A way of encrypting DNS lookups so others on the network can't see them.