Glossary / DNS basics

DNS (Domain Name System)

DNS, the Domain Name System, is the internet's naming service that turns a domain name like example.com into the IP address of the server behind it. A resolver asks the root, then the top-level domain, then the domain's own nameservers, and caches the answer for the record's TTL.

Copy the syntax

Look up an address

dig example.com A +short

macOS and Linux. Returns the IPv4 address the name points to.

Same check on Windows

nslookup example.com

Shows which resolver answered and the address it returned.

Have a name in mind?

.com $24.99 first year, renews at $24.99/yr. Other endings: not on sale yet.

In plain English

DNS is the internet's address book. You type a name, DNS finds the number your computer actually connects to.

What to do

  • Point your domain at your site with an A or CNAME record.
  • Add MX records if you want email on the domain.
  • Check your records with a DNS lookup after each change.
How a DNS lookup worksFour-step DNS lookup: browser, recursive resolver, root and .com referrals, authoritative nameserver returning an address.1 · Browserexample.com?asks the resolver2 · Resolverrecursive serverchecks its cache first3 · Root and .comreferralspoint to the nameservers4 · NameserverA 192.0.2.10authoritative answer
The resolver walks from the root to the domain's own nameserver, then caches the answer for the record's TTL.
Defined in
RFC 1034 and RFC 1035 (November 1987)Source: RFC 1035
Default port
53, over UDP and TCPSource: RFC 1035
Record types
Listed in the IANA DNS parameters registrySource: IANA
Root zone
Managed by IANASource: IANA
Terminology
RFC 9499, DNS terminologySource: RFC 9499
What is a DNS server?

A DNS server is a computer that answers DNS questions. There are two kinds you meet in practice. A recursive resolver looks answers up for you, usually run by your ISP, your company or a public service. An authoritative nameserver holds the actual records for a domain and gives the final answer.

When you edit records for your domain, you are changing the copy on its authoritative nameservers. Resolvers pick up the change once their cached copy expires.

What is a public DNS resolver?

A public DNS resolver is a recursive resolver anyone can use, such as Cloudflare’s 1.1.1.1 or Google Public DNS at 8.8.8.8. You set it in your router or device network settings instead of your ISP’s resolver.

Switching resolvers changes who looks names up for you. It does not change your domain’s records, which live on its authoritative nameservers.

How do I check a domain's DNS?

Run dig on macOS or Linux, or nslookup on Windows, with the domain and the record type you care about. Add a resolver address, such as @1.1.1.1, to compare what different resolvers see.

If two resolvers disagree, one of them is still serving a cached answer. Wait for the TTL on the old record to pass.

Common DNS records, with example values

Example values use documentation-only names and addresses (RFC 2606, RFC 5737).
TypeNameValueUsed for
A@192.0.2.10Website address (IPv4)
AAAA@2001:db8::10Website address (IPv6)
CNAMEwwwexample.com.Alias to another name
MX@10 mail.example.net.Where email is delivered
TXT@v=spf1 include:_spf.example.net ~allSender check (SPF)
NS@ns1.example.net.Which servers hold the zone

Ask a specific public resolver

dig @1.1.1.1 example.com A

Compare answers when you suspect a stale cache.

Questions about DNS (Domain Name System)

How long do DNS changes take?

A change shows up once resolvers drop the old cached answer, which takes as long as the old record’s TTL. Many records use an hour. Nameserver changes can take longer, because the parent zone’s NS records carry their own, often longer, TTL.

Is DNS the same as a domain name?

No. A domain name is the address you register, like example.com. DNS is the system that publishes records for that name, so browsers and mail servers know where to connect. You can keep the name and move its DNS to another provider.

Which port does DNS use?

DNS uses port 53 over UDP for most queries and over TCP for large answers and zone transfers, as RFC 1035 sets out. Encrypted variants such as DNS over HTTPS run on port 443 instead.

What happens if DNS is down?

If a domain’s nameservers stop answering, resolvers can still serve cached answers until their TTLs run out. After that, the site and email for that domain stop resolving, even though the web and mail servers are still running.

Put it to work on your own domain

See the first-year and renewal price before you pay.

.com first year$24.99, renews $24.99Check a domain
↑