What is DNS?
How DNS turns names into addresses, and what A, AAAA, MX, NS, TXT, SOA and CAA records do.
The Domain Name System (DNS) is the internet's directory. It turns names people can remember, like example.com, into the IP addresses computers use, and stores other information about a domain.
How a lookup works
- Your device asks a resolver, usually run by your ISP or a public service.
- If the answer isn't cached, the resolver asks the root servers, then the servers for the top-level domain (such as
.com), then the domain's own authoritative name servers. - The answer comes back with a TTL (time to live) saying how many seconds it may be cached.
Because of caching, changes to DNS records can take up to the old TTL to be seen everywhere.
Common record types
| Type | Purpose |
|---|---|
A | IPv4 address for a name |
AAAA | IPv6 address for a name |
CNAME | Alias pointing one name at another |
MX | Mail servers for the domain, with priorities (lower is preferred) |
NS | Authoritative name servers for the domain |
TXT | Free text, used for SPF, DKIM, DMARC and domain verification |
SOA | Start of authority: primary server, admin contact, serial and timers |
CAA | Which certificate authorities may issue TLS certificates for the domain |
Reverse DNS
Reverse DNS (a PTR record) maps an IP address back to a hostname. Mail servers often check it, and our IP lookup shows it.
Try it
Run a DNS lookup for any domain, or check who registered it with a WHOIS lookup.