The Domain Name System (DNS) is the internet's distributed directory. It stores records under each domain name: which IP address serves the website, which servers take the email, and short text notes that prove you own the domain. No single computer holds the whole directory. Each domain's records live on its own name servers, and the system knows which servers to ask.
DNS dates from 1983, when Paul Mockapetris described domain names in RFC 882 and 883. The versions still in force, RFC 1034 and 1035, came out in 1987.
What happens when someone types your domain
Say a visitor types www.example.com for the first time today. Their device needs an IP address before it can connect.
- The device checks its own cache. If it looked up the name recently, it reuses that answer.
- It asks a resolver. This is usually run by the internet provider or a public DNS service. The resolver does the legwork and caches what it learns.
- The resolver asks a root server, which says who runs
.com. - It asks the
.comservers, which say which name servers holdexample.com. - It asks those authoritative name servers, which return the record, for example the IP address for
www.example.com. - The resolver caches the answer for as long as the record's TTL allows, then hands it to the browser.
All of this usually takes a fraction of a second, and caching means most visits skip steps 3 to 5.
The records you'll actually edit
You manage your domain's records in a control panel at your registrar, host or DNS provider. These are the ones most site owners touch:
| Record | What it says | Typical use |
|---|---|---|
| A | The IPv4 address for a name | Point example.com at your web server |
| AAAA | The IPv6 address for a name | The same, for IPv6 |
| CNAME | This name is an alias of another name | Point www or shop at a hosted platform |
| MX | Which servers receive email for the domain | Set up email hosting |
| TXT | Free text | Email authentication (SPF, DKIM) and ownership checks such as Search Console |
| NS | Which name servers hold the domain's records | Hand the domain to a DNS provider |
One rule trips people up: a name that has a CNAME can't hold any other record. The bare domain (example.com) always needs NS records, so it normally gets an A or AAAA record instead of a CNAME. Some DNS providers offer a workaround under their own name.
TTL and "propagation"
Every record has a TTL (time to live): the number of seconds resolvers may keep a cached copy. A TTL of 3,600 means a resolver can go on serving an old answer for up to an hour after you change it. This caching is what people mean by DNS "propagation". Nothing is being pushed around the world; old copies simply expire.
Before a planned change, such as a move to a new host, lower the TTL to a few minutes. Do it at least one old TTL ahead: if the record had 86,400 seconds, that's a day before the move. Once the change is live and stable, raise it again. Google says that after a DNS change you may need to wait up to 72 hours for it to reach everyone (Google Search Central).
How DNS problems affect SEO
If DNS fails, no one reaches your site, and that includes Googlebot. Google treats DNS errors like server (5xx) errors: crawling slows down at once, and pages that stay unreachable are removed from Google's index within days. So a lapsed domain, a deleted A record or a broken name server can cost rankings fast.
When Search Console reports DNS errors, check three things:
- Your A and CNAME records point to the right IP address and hostname.
dig example.com ashows what the world sees. - Your NS records list name servers that actually hold your records.
- Your firewall doesn't block Google's DNS queries over UDP or TCP.
DNS also sits behind everyday SEO tasks. You verify a Search Console Domain property by adding a TXT record. A site migration or CDN setup is mostly a DNS change. And because each new hostname needs a lookup before the browser can connect, DNS prefetch can start lookups for third-party domains early.
Keeping DNS secure
Whoever controls your DNS controls where your visitors and email go. Three layers help:
- Your accounts. Use two-factor sign-in at your registrar and DNS provider, and turn on the registrar's transfer lock. Most hijacks start with a taken-over account.
- DNSSEC signs your records so resolvers can check they weren't forged on the way (RFC 4033). You turn it on at your DNS provider, and your registrar publishes the matching key.
- Encrypted lookups. DNS over HTTPS and DNS over TLS hide queries between a device and its resolver. They protect visitors' privacy; they aren't a setting on your domain.