Key takeaways
- DNS translates human-readable names like example.com into the IP addresses computers use.
- A lookup moves from a recursive resolver to the root, the TLD servers, and finally the domain's authoritative nameservers.
- Each record has a TTL that controls how long resolvers may cache it — which is why changes are not instant.
The Domain Name System (DNS) is the directory of the internet. People remember names like example.com; networks route traffic to IP addresses like 203.0.113.10 (IPv4) or 2001:db8::10 (IPv6). DNS is the distributed system that connects the two — and almost every outage that starts with “the site won’t load” is worth checking here first.
What happens when you type a domain
When your browser needs the address for www.example.com, it asks a recursive resolver — usually run by your ISP, your company, or a public service. If the resolver doesn’t already have a cached answer, it works through the hierarchy:
- Root servers reply with the servers responsible for the top-level domain (
.com). - TLD servers for
.comreply with the domain’s authoritative nameservers — the ones set at your registrar. - Authoritative nameservers return the actual record, for example an
Arecord pointing to an IPv4 address.
The resolver caches each answer for as long as its TTL allows and returns the result to your browser, which then connects to that IP.
The records you’ll use most
| Record | Purpose | Example value |
|---|---|---|
A | Maps a name to an IPv4 address | 203.0.113.10 |
AAAA | Maps a name to an IPv6 address | 2001:db8::10 |
CNAME | Makes one name an alias of another | shop.example.com → stores.provider.net |
MX | Routes email for the domain, with a priority | 10 mail.example.com |
TXT | Free-form text — used for SPF, DKIM, DMARC and domain verification | v=spf1 include:_spf.example.net ~all |
NS | Delegates a zone to its authoritative nameservers | ns1.example.net |
CAA | Lists which certificate authorities may issue certificates for the domain | 0 issue "letsencrypt.org" |
A CNAME cannot coexist with other records at the same name, which is why the bare domain (example.com) normally uses A/AAAA records rather than a CNAME.
TTL and “propagation”
Every record carries a time to live (TTL) in seconds. A resolver that cached a record with a TTL of 3600 may keep serving that answer for up to an hour, even after you change it. That is what people call propagation: not a broadcast, but caches around the world expiring at different times.
Two practical habits avoid most surprises:
- Lower the TTL before a planned change. Drop it to
300a day ahead, make the change, then raise it again once everything is stable. - Check authoritative answers directly. Query your nameservers to confirm the new value is published, then check public resolvers to see who still has the old one cached.
# Ask the authoritative nameserver directly
dig @ns1.example.net example.com A +short
# Ask a public resolver what it currently has cached
dig @1.1.1.1 example.com A +noall +answer
Nameservers vs. records
Your registrar stores which nameservers are authoritative for your domain. Those nameservers hold the zone — the records themselves. Changing nameservers moves the whole zone to a different DNS provider; changing a record edits one entry inside the current zone. Mixing these up is one of the most common causes of “I updated DNS but nothing changed”: the edit was made at a provider that isn’t authoritative.
Where to go next
Once names resolve correctly, the next layers are securing the connection with TLS and authenticating your email with SPF, DKIM and DMARC. Use a DNS lookup tool to inspect any of the records above for a live domain.
Frequently asked questions
How long does DNS propagation take?
There is no single propagation event. Resolvers keep a cached answer until its TTL expires, so most changes are visible within the old record's TTL. Nameserver changes at the registry can take longer because the parent zone's NS records commonly have TTLs of up to 48 hours.
Is DNS the same as hosting?
No. DNS only tells clients where to connect. Hosting is the server that answers once they arrive. You can keep DNS with one provider and host your website or email elsewhere.