DNS, the Domain Name System, translates human-readable domain names such as example.com into IP addresses such as 93.184.216.34 that computers use to find each other. When you type a web address, a recursive resolver asks root, top-level-domain and authoritative nameservers in turn, then returns the IP address so your browser can load the page.
Key takeaways
- DNS translates domain names into IP addresses, so you never have to memorize numbers to visit a website.
- A lookup passes through a recursive resolver, root servers, TLD servers and the domain's authoritative nameserver.
- DNS records do more than point to websites: they route email and publish SPF, DKIM and DMARC protections.
You type a name like example.com and a website appears. You never type the numbers behind it, and you never have to. DNS does that translation for you, millions of times a second, in a few milliseconds.
What is a DNS?
DNS stands for Domain Name System. It is the internet's phonebook: it translates human-readable domain names into IP addresses so browsers can load internet resources.
Every device on the internet has an IP address, such as 192.168.1.1 in IPv4 or a longer alphanumeric address in IPv6. DNS servers remove the need for humans to memorize those numbers.
DNS is distributed, not held in one place. No single computer holds the whole list. Records are spread across millions of servers, each responsible for its own small piece.
The system was designed in 1983, and the standards that still define it — RFC 1034 and RFC 1035 — were published in 1987. That longevity is a sign of how well the design works.
How does DNS work?
When you type a domain name, your device asks a DNS resolver to find the matching IP address. The resolver tracks the answer down through a hierarchy of nameservers, then hands the address back.
Cloudflare describes the lookup as an 8-step process when nothing is cached. In practice most lookups are far shorter, because answers are cached at several layers along the way.
1. Your browser and computer check their caches
Before asking anyone else, your browser checks its own DNS cache, then your operating system checks its cache. If you visited the site recently, the answer is already there.
2. The recursive resolver takes over
If there is no cached answer, the query goes to a recursive resolver — usually run by your internet provider or a public DNS service. The resolver does the legwork for you.
3. The root server points to the TLD
The resolver asks a root nameserver, the first step in translating a name into an address. The root server does not know the IP address; it points to the server for the top-level domain, such as .com.
4. The TLD server points to the domain's nameservers
The .com server holds the last part of the hostname. It responds with the address of the nameserver responsible for example.com.
5. The authoritative nameserver gives the real answer
The domain's own nameserver is the source of truth. It holds the actual records and returns the IP address. The resolver hands it back to your computer, every layer caches it, and your browser connects.
What are the four types of DNS servers?
Four kinds of DNS server take part in loading a webpage. Each has one job, and the lookup passes from one to the next in order.
| Server | Job | Analogy |
|---|---|---|
| DNS recursor | Receives your query and tracks down the answer | A librarian asked to find a book |
| Root nameserver | Points to the right TLD server | An index pointing to the right rack |
| TLD nameserver | Hosts the last part of the name, such as .com | A specific rack of books |
| Authoritative nameserver | Holds the domain's records and gives the final answer | The dictionary on that rack |
The recursive resolver sits at the start of the chain and the authoritative nameserver at the end. That distinction matters when you troubleshoot: a wrong answer usually comes from the authoritative server, while a slow answer usually comes from the resolver or the cache.
What are the main DNS record types?
DNS records are the entries that say what a domain points to. Most domains use only a handful of types, and each one does a different job.
| Record | What it does | Example use |
|---|---|---|
| A | Maps a name to an IPv4 address | example.com to its web server |
| AAAA | Maps a name to an IPv6 address | The same, for IPv6 visitors |
| CNAME | Points one name at another name | www.example.com to example.com |
| MX | Says where email for the domain goes | Routing mail to your provider |
| TXT | Holds text, such as SPF, DKIM and DMARC | Email authentication policies |
| NS | Names the domain's authoritative servers | Delegating the domain to a DNS provider |
MX and TXT records are where DNS meets email security. An MX record that points to the wrong server means your email goes nowhere, and a missing DMARC record means anyone can send email that looks like it came from you. Our guide to what DMARC is explains how that record works.
You can inspect any domain's records with our free DNS lookup tool — try it on your own domain and check the MX and TXT records first.
What is the difference between DNS and a nameserver?
DNS is the whole system; a nameserver is one computer inside it. The nameserver stores records, while DNS is the set of rules, servers and records that together resolve names to addresses.
When you register a domain, you choose which nameservers are authoritative for it. That choice is stored at the registrar and pointed to by the TLD server.
Changing nameservers moves control of all your records at once. Changing a single record, such as an A record, only changes where one name points. Confusing the two is a common cause of sites going down after a migration.
How does DNS caching and propagation work?
DNS caching stores lookup results so your computer does not have to query DNS servers every time you visit a website. It happens in your browser, your operating system and the resolver.
Every record has a time-to-live, or TTL, which says how long a cached copy may be used. A TTL of 3600 seconds means resolvers may reuse the answer for an hour before asking again.
That is why changes take time to spread — the period people call propagation. Until cached copies expire, some visitors see the old address and others see the new one.
Before a big move, lower the TTL a day or two in advance. A short TTL means the old answer expires quickly, so the change spreads faster when you make it.
Is DNS secure? What are the risks?
Classic DNS has two weaknesses: queries are usually unencrypted, and answers are not signed by default. That allows spoofing, snooping and redirection to fake sites.
DNS spoofing and cache poisoning feed a resolver a false answer, so visitors to a real domain land on an attacker's server. The fake site then harvests passwords or installs malware.
DNS hijacking changes the records themselves, usually by compromising the registrar account or the DNS provider. The attacker redirects mail and web traffic until someone notices.
DNS tunneling hides stolen data inside DNS queries, which many firewalls let through without inspection because DNS is essential traffic.
Three defenses help. DNSSEC adds cryptographic signatures so resolvers can verify that an answer is genuine. DNS over HTTPS (DoH) and DNS over TLS (DoT) encrypt queries so they cannot be read or altered in transit. And strong, unique credentials plus MFA on your registrar and DNS provider accounts stop hijacking at the source.
How do you troubleshoot DNS problems?
Most DNS problems are one of four things: a wrong record, an expired cache, a bad nameserver setting, or a resolver that cannot be reached. Work through them in that order.
- Check the records. Run a DNS lookup for the domain and the record type that is failing — A for the website, MX for email.
- Check the nameservers. Use a WHOIS lookup to confirm the domain points at the nameservers you expect.
- Wait out the TTL. If you just changed a record, cached copies may still serve the old answer until the TTL expires.
- Try another resolver. If the site loads on one network but not another, the problem is likely a resolver or cache, not your records.
- Flush your local cache. On Windows run
ipconfig /flushdns; on macOS use the DNS flush command for your version.
Common error messages point at DNS too. "DNS_PROBE_FINISHED_NXDOMAIN" usually means the name does not resolve at all, while "ERR_NAME_NOT_RESOLVED" means the resolver could not find an answer.
Who runs DNS, and who should care about it?
DNS is run by many organizations together. ICANN coordinates the root zone and top-level domains, registries run each TLD, registrars sell domains, and DNS providers host the authoritative nameservers.
Website owners care because DNS controls where their site and email point. A single wrong record can take a site offline or send email into the void.
Security teams care because DNS is both a target and a signal. Attackers abuse it for phishing domains and data theft, while defenders use DNS logs to spot malware calling home.
Everyone else uses DNS without thinking about it — which is exactly how it should work. The guide to securing your Wi-Fi covers the home-network side, including the DNS settings on your router.
The bottom line
DNS is the quiet system that makes the internet usable: names in, numbers out, in milliseconds. You do not need to manage it daily, but you do need to know where your records live and who can change them.
Check your own domain today with the free DNS lookup tool — confirm the A, MX and TXT records, and make sure your registrar account is protected with MFA.
Frequently asked questions
What does DNS stand for?
DNS stands for Domain Name System. It is the distributed system that translates domain names into IP addresses, and it also stores other records such as where to deliver email for a domain.
What is a DNS server?
A DNS server is a computer that answers DNS queries. Recursive resolvers answer questions from your devices by tracking down the answer, while authoritative nameservers hold the official records for a domain and give the final answer.
What is the difference between DNS and a domain name?
A domain name is the readable address, such as example.com. DNS is the system that looks that name up and returns the IP address and other records attached to it. The name is the label; DNS is the lookup service.
What happens if DNS stops working?
Websites and email stop working by name, even though the servers themselves are still online. Your browser cannot find the IP address to connect to, so pages fail to load. This is why DNS outages feel like the whole internet is down.
What is DNS propagation?
Propagation is the time it takes for a DNS change to spread. Every record has a TTL, a time-to-live, telling resolvers how long to cache it. Until cached copies expire, some people see the old answer and others see the new one.
Is DNS secure?
Classic DNS is not encrypted and its answers are not signed by default, which allows spoofing and snooping. DNSSEC adds signatures so answers can be verified, and DNS over HTTPS and DNS over TLS encrypt queries. Use a resolver that supports them.
What is a DNS record?
A DNS record is one entry in a domain's DNS zone. A records map a name to an IPv4 address, AAAA records to IPv6, MX records say where email goes, CNAME records alias one name to another, and TXT records hold text such as SPF, DKIM and DMARC policies.
How do I check a domain's DNS records?
Use a DNS lookup tool and enter the domain and the record type you want, such as A, MX or TXT. It queries the domain's nameservers and shows the current records, which is useful when email stops working or a site points to the wrong server.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Cloudflare's DNS explainer and the original DNS standards, RFC 1034 and RFC 1035.
How we write and fact-check →