Explainer

What is DNS? How domain names become IP addresses

DNS explained simply — how a domain name is turned into an IP address, the main record types (A, AAAA, MX, CNAME, TXT, NS), TTLs, and how to check them.

Updated 22 November 2026 · 2 min read

The Domain Name System (DNS) is the internet's address book. Computers connect to each other by IP address, but people remember names like example.com. DNS turns the name into the address — usually in a few milliseconds, every time you open a website, send an email or use an app.

What happens when you type a domain

  1. Your device asks its DNS resolver — usually run by your internet provider, or a public one such as Cloudflare (1.1.1.1) or Google (8.8.8.8) — "what is the IP of www.example.com?"
  2. If the resolver has the answer cached, it replies at once.
  3. If not, it asks the root servers, which point to the servers for .com, which point to the domain's own authoritative name servers.
  4. The authoritative server replies with the record, and the resolver caches it and passes it back.
  5. Your browser connects to that IP address.

The DNS record types you will meet

Record What it holds Example
A IPv4 address of a name 203.0.113.10
AAAA IPv6 address of a name 2001:db8::10
CNAME An alias pointing to another name www → example.com
MX Mail servers for the domain, with priority 10 mx1.example.com
TXT Text, used for SPF, DKIM, DMARC and site verification v=spf1 include:… ~all
NS The domain's authoritative name servers ns1.example.net
SOA Zone details: primary server, serial number, timers —
CAA Which certificate authorities may issue SSL certificates 0 issue "letsencrypt.org"
PTR The reverse: the name behind an IP address 1.1.1.1 → one.one.one.one

Look up any of these with our DNS lookup, and PTR records with the reverse DNS lookup.

TTL and "DNS propagation"

Every record has a TTL (time to live) in seconds, which tells resolvers how long they may cache it. When you change a record, resolvers keep the old answer until its TTL runs out — that delay is what people call DNS propagation. Lower the TTL (for example to 300 seconds) a day before a planned change so it takes effect quickly.

DNS and privacy

Your DNS resolver sees every domain you look up. Ordinary DNS is also unencrypted, so your network can see it. Two ways to improve this:

  • Encrypted DNS — DNS over HTTPS (DoH) or DNS over TLS (DoT), supported by modern browsers, Windows 11, macOS, iOS and Android ("Private DNS").
  • A VPN that handles DNS — otherwise your lookups may still go to your provider. Our VPN check tests your connection for leaks.

Common DNS problems

  • "DNS server not responding" / "DNS_PROBE_FINISHED_NXDOMAIN" — the name does not exist, or the resolver is unreachable. Try a public resolver or restart the router.
  • A site works on mobile data but not on Wi-Fi — the home router's resolver may have a stale or blocked answer.
  • Email lands in spam — missing or wrong SPF, DKIM or DMARC TXT records. Check them with the DNS lookup.

All tools

Look up

Privacy & VPN

Network tools

More