A domain name looks like a single thing, but behind it sits a small database of records, each answering a different question. Where is the website? Which servers take the email? Who may issue TLS certificates? Is this domain verified for a particular service? When a site will not load or mail disappears, the first useful step is almost always to look at those records and read them correctly.
This guide is a practical reference to the record types you will meet most often, how to read a lookup result, what the status codes mean, and how to audit your own domain before and after a change.
The records you will see most often
| Type | Answers the question | Example value |
|---|---|---|
| A | What is the IPv4 address? | 203.0.113.10 |
| AAAA | What is the IPv6 address? | 2001:db8::10 |
| CNAME | Is this an alias, and of what? | shop.platform.example. |
| MX | Which servers receive email, in what order? | 10 mx1.mailhost.example. |
| NS | Which nameservers are authoritative? | ns1.dnshost.example. |
| TXT | Free text: SPF, DMARC, verification tokens | "v=spf1 include:_spf.mailhost.example ~all" |
| SOA | Zone metadata: primary server, serial, timers | ns1.dnshost.example. hostmaster.example.com. 2026092901 ... |
| CAA | Which certificate authorities may issue certificates | 0 issue "ca.example" |
| SRV | Where a specific service runs (host and port) | 10 5 5060 sip.example.com. |
| PTR | What name belongs to an IP address (reverse DNS) | mail.example.com. |
| HTTPS | Connection hints for browsers (protocols, alternate endpoints) | 1 . alpn="h2,h3" |
| DS / DNSKEY | DNSSEC keys and their link to the parent zone | key tags, algorithms, digests |
A few relationships are worth remembering. A website usually needs A and ideally AAAA at the root and at www (or a CNAME at www). Email needs MX plus TXT records for SPF, DKIM and DMARC. CAA is optional but lets you restrict certificate issuance to the authorities you actually use; if no CAA exists, any public CA may issue.
Reading a lookup result
Every answer has the same four parts: name, type, TTL and value.
TTL
The TTL is how many seconds a resolver may cache the answer. An important subtlety: when an answer comes from a cache, the TTL shown is the time remaining, counting down. If your zone says 3600 and a lookup shows 1422, that resolver fetched the record about 36 minutes ago. This is why two lookups a minute apart can show different TTLs.
Response codes
| Code | Meaning | Typical cause |
|---|---|---|
| NOERROR | The query worked; the answer may still be empty | Name exists, record type may not |
| NXDOMAIN | The name does not exist at all | Typo, unregistered or expired domain, missing subdomain |
| SERVFAIL | The resolver could not get a valid answer | Broken DNSSEC, unreachable or misconfigured nameservers |
| REFUSED | The server would not answer | Querying a server that is not authoritative or not open |
"NOERROR with no records" and "NXDOMAIN" are different. The first means www.example.com exists but has, say, no AAAA record. The second means the name itself is unknown.
Look up records with our tool
The DNS Lookup queries public DNS over HTTPS directly from your browser.
- Open the DNS Lookup and type a domain, hostname or IP address into Domain, hostname or IP address. Names with underscores, such as
_sip._tcp.example.com, are accepted for SRV lookups. - Pick a Record type. All common types fetches A, AAAA, CNAME, MX, NS, TXT, SOA and CAA together; you can also pick a single type, including SRV, PTR, HTTPS, DS and DNSKEY.
- Choose the resolver: Cloudflare, Google or AliDNS.
- Click Look up. If you entered an IP address, the tool automatically looks up its PTR record.
- Results are grouped by type, each with a one-line explanation, and show Name, Type, TTL and Value. Empty groups state the response code.
- Copy as zone file copies every record in zone-file format, which is handy as a before-and-after snapshot when you change DNS.
An NXDOMAIN warning appears at the top if the name does not exist.
Command-line equivalents
dig example.com A
dig example.com MX +short
dig @8.8.8.8 example.com TXT
nslookup -type=caa example.com
Resolve-DnsName example.com -Type AAAA
dig shows the full response including flags and the authority section, which is invaluable for deep debugging. Avoid relying on ANY queries: many servers now return a minimal answer to them (RFC 8482), so querying types individually is more reliable. The browser tool is quicker when you are on a locked-down machine or a phone.
Auditing your own domain
Run an All common types lookup and go through this checklist:
- A/AAAA at the root and
wwwpoint to your current hosting. Old IPs are a sign of forgotten migrations. - CNAME targets still exist; dangling aliases are a takeover risk. Trace them with the CNAME Lookup.
- MX points to your current mail provider only. Details in how MX records route email.
- TXT has exactly one SPF record, a DMARC record at
_dmarc, and no stale verification tokens. - NS lists at least two nameservers from the provider you expect.
- CAA, if present, includes every certificate authority you use, or certificate renewals will fail.
Troubleshooting with lookups
Site does not load
NXDOMAIN points to the name or registration; check expiry with the WHOIS Lookup. SERVFAIL often means DNSSEC or nameserver trouble. Correct records but a failing site suggest the problem is on the server, not in DNS.
Change not visible yet
Compare the TTL with the time since your change, and compare resolvers with the DNS Propagation Checker.
Certificate issuance fails
Look up CAA on the exact name and each parent. A CAA record anywhere up the tree that omits your CA blocks issuance.
Frequently asked questions
What is the difference between an A and an AAAA record?
An A record holds an IPv4 address and an AAAA record holds an IPv6 address. Sites that support both give visitors on IPv6 networks a direct route.
Why does the TTL change every time I look it up?
Resolvers count the TTL down while the answer sits in their cache. You are seeing the time left before they refresh it, not the value set in your zone.
What does NXDOMAIN mean?
It means the name does not exist in DNS. Check the spelling, whether the subdomain was created, and whether the domain is registered and not expired.
Do I need a CAA record?
It is optional. Without one, any public certificate authority may issue for your domain; with one, only the listed authorities may.
Why do different resolvers show different answers?
Each resolver caches independently, so after a change some still hold the old answer until their TTL expires. Some DNS setups also return location-dependent answers on purpose.