How DNS Works

DNS is the internet's phone book. It turns domain names into IP addresses.


The Problem DNS Solves

Computers communicate using IP addresses like 142.250.80.46. Humans prefer names like google.com. DNS bridges that gap.

When you type a URL into your browser, DNS translates it to an IP address so your computer knows where to connect.

How a DNS Lookup Works

Here's what happens when you visit example.com:

  1. Browser cache – Your browser checks if it recently looked up this domain
  2. OS cache – Your operating system has its own DNS cache
  3. Resolver – If not cached, the query goes to a DNS resolver (usually your ISP's or a public one like 8.8.8.8)
  4. Root servers – The resolver asks root servers which servers handle .com
  5. TLD servers – The .com servers point to example.com's nameservers
  6. Authoritative nameserver – Finally, example.com's own nameserver returns the IP

This chain happens in milliseconds. Once resolved, the result is cached to speed up future requests.

DNS Record Types

DNS isn't just about IP addresses. Different record types serve different purposes:

RecordPurposeExample
A Maps domain to IPv4 address 93.184.216.34
AAAA Maps domain to IPv6 address 2606:2800:220:1:248:1893:25c8:1946
MX Specifies mail servers mail.example.com
CNAME Alias to another domain www.example.com → example.com
TXT Text data (verification, SPF, etc) v=spf1 include:_spf.google.com ~all
NS Nameservers for the domain ns1.example.com

You can check any domain's records with our DNS Records tool.

TTL (Time to Live)

Each DNS record has a TTL value (in seconds) that tells resolvers how long to cache it. Common values:

When you change DNS records, it takes up to the TTL period for the change to propagate globally.

Public DNS Resolvers

You don't have to use your ISP's DNS. Popular alternatives:

ProviderPrimarySecondary
Google8.8.8.88.8.4.4
Cloudflare1.1.1.11.0.0.1
OpenDNS208.67.222.222208.67.220.220
Quad99.9.9.9149.112.112.112

These can be faster, more reliable, or offer additional features like malware blocking.

Reverse DNS

Regular DNS maps names to IPs. Reverse DNS does the opposite—mapping IPs back to hostnames.

It uses special PTR records. For example, the reverse DNS for 8.8.8.8 returns dns.google.

Try it with our Reverse DNS tool.

DNS and Privacy

Traditional DNS queries are unencrypted. Your ISP (and anyone on your network) can see every domain you look up.

Newer protocols address this:

Most modern browsers support these options in their settings.

Look Up DNS Records

Check any domain's DNS configuration: DNS Lookup