To check a domain's DNS records, type the domain into a DNS lookup tool and choose "All common types": you get its A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records, each with its value and how long it is cached. On your own computer you can do the same with nslookup (Windows) or dig (Mac and Linux). The rest of this guide shows each method and how to read what comes back.
Check DNS records online
- Open the DNS lookup.
- Type the domain, such as
example.com. You can paste a full web address or an email address; the tool keeps only the domain. For a subdomain or a special record, type the whole name, for examplewww.example.comor_dmarc.example.com. - Leave All common types selected, or pick one type (TXT when you are checking a verification code, MX for email).
- Press Look up. Problems that break things, such as two SPF records or a CNAME on the root domain, are listed above the records.
The lookup goes from your browser straight to Cloudflare's or Google's public DNS over an encrypted connection, so nothing you check is sent to us. Use the Ask menu to compare the two resolvers when you have just changed something.
What each record type tells you
| Record | Looks like | What it means |
|---|---|---|
| A | 203.0.113.10 | The IPv4 address of the server for this name (usually the website). |
| AAAA | 2001:db8::10 | The same for IPv6. |
| CNAME | shops.myshopify.com. | This name is an alias: look up the other name instead. Common for www and subdomains. |
| MX | 1 smtp.google.com. | The server that receives the domain's email; the number is the priority (lowest is tried first). |
| TXT | v=spf1 include:_spf.google.com ~all | Text for other services: SPF, DMARC, and ownership checks from Google, Microsoft, Meta and others. |
| NS | ns1.host.net. | The name servers that hold the records. Changing them moves the whole domain to another DNS host. |
| SOA | ns1.host.net. hostmaster.host.net. 2026112401 … | The primary server, a contact address and timers for the zone. The serial number usually goes up with each change. |
| CAA | 0 issue "letsencrypt.org" | Which certificate authorities may issue SSL certificates for the domain. |
The trailing dot on names such as smtp.google.com. is normal: it marks a complete name. The TTL (time to live) next to each record is how long resolvers may keep a copy before asking again.
Check DNS records on Windows with nslookup
Open Command Prompt or PowerShell and type one of these (replace example.com):
| To see | Type |
|---|---|
| The website address | nslookup example.com |
| Mail servers | nslookup -type=mx example.com |
| TXT records (SPF, verification) | nslookup -type=txt example.com |
| Ask a specific resolver | nslookup -type=txt example.com 1.1.1.1 |
A "Non-authoritative answer" line only means the answer came from a resolver's cache rather than the domain's own name servers; it is not an error.
Check DNS records on Mac or Linux with dig
Open Terminal. dig example.com shows the A record; add the type for others, such as dig mx example.com or dig txt example.com. Add +short to see only the values, and @1.1.1.1 or @8.8.8.8 to ask a particular resolver. The number in the second column of the answer is the remaining TTL in seconds.
Has my DNS change gone live?
A change is live at your DNS host straight away, but resolvers that already cached the old value keep it until its TTL runs out. That is why one person sees the new website and another still sees the old one. To check:
- Look up the name at your DNS host's own name servers (the NS records). If the old value is still there, the change was not saved, or it was made at a DNS host the domain doesn't use.
- Compare Cloudflare and Google in the DNS lookup. If one shows the new value, the other will follow when its cached copy expires.
- Before a planned move, lower the record's TTL to 5 minutes a day ahead, so the switch spreads quickly; raise it again afterwards.
Common problems the lookup finds
- Two SPF records. A domain may have only one TXT record starting with
v=spf1; with two, SPF fails for all mail. Merge them with the SPF record generator. - A CNAME on the root domain. The bare domain needs SOA, NS and often MX records, which can't sit next to a CNAME. Use your host's "CNAME flattening" or ALIAS record, or A records.
- No MX records. Email to the domain then goes to the website's server or bounces. Check with the MX lookup.
- The domain doesn't exist (NXDOMAIN). A typo, an expired registration, or a domain that was never registered.
If your question is really "why do my emails go to spam?", the DNS records to check are SPF, DKIM and DMARC: the email deliverability checker tests all three and gives the exact fix.
Frequently asked questions
How do I find all DNS records for a domain?
DNS doesn't hand out a full list of a domain's names, so no tool can show every subdomain. A lookup shows all the common record types for the names you ask about: the root domain, www, and special names such as _dmarc. Your DNS host's dashboard shows the complete list.
What is a TTL in DNS?
Time to live: how many seconds a resolver may cache a record before asking again. 3600 means one hour. Lower TTLs make changes spread faster; higher ones mean fewer lookups.
Is a DNS lookup the same as WHOIS?
No. DNS records say where the website and email go. WHOIS (or RDAP) shows who registered the domain, the registrar and the expiry date.


