ip-facts

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

  1. Your device asks a resolver, usually run by your ISP or a public service.
  2. 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.
  3. 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

TypePurpose
AIPv4 address for a name
AAAAIPv6 address for a name
CNAMEAlias pointing one name at another
MXMail servers for the domain, with priorities (lower is preferred)
NSAuthoritative name servers for the domain
TXTFree text, used for SPF, DKIM, DMARC and domain verification
SOAStart of authority: primary server, admin contact, serial and timers
CAAWhich 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.