# DNS Lookup Tool: Every Record for a Domain, Explained

> Free DNS lookup: see A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records for any domain, with SPF and DMARC parsed and checked for common mistakes. No signup.

Enter a domain to see its DNS records in one view, with SPF and DMARC parsed and checked for the mistakes that break email.

- Use it free (no signup): https://yes-seo.com/dns-lookup
- API: `GET https://yes-seo.com/api/v1/dns-lookup?domain=example.com`
- What it does: DNS lookup: A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records, with SPF and DMARC parsed and checked for common mistakes.

DNS is the address book behind every domain. It decides which server answers for your website, where your email goes, which services can verify you own the domain and which certificate authorities may issue certificates for it. When a record is wrong, a site can go offline or email can land in spam, sometimes for days before anyone notices.

This DNS lookup shows the A, AAAA, CNAME, MX, NS, TXT, SOA and CAA records of a domain together. SPF and DMARC records are parsed and checked for common mistakes, such as duplicate SPF records or a DMARC policy that does nothing.

## How to look up DNS records

1. **Enter a domain** — Type a domain or subdomain, such as example.com or shop.example.com, without https:// or a path.
2. **Review the records** — Each record type is listed with its values, and SPF and DMARC get a plain-English breakdown.
3. **Fix at your DNS host** — Edit records wherever your NS records point (registrar, CDN or host), then check again.

## What each record type does

| Record | Purpose |
| --- | --- |
| A / AAAA | Point a name to an IPv4 or IPv6 address. |
| CNAME | Make a name an alias of another name. It can’t share its name with other records, so it can’t sit at the bare domain; providers offer ALIAS records or CNAME flattening instead. |
| MX | Mail servers for the domain; the lowest preference number is tried first. |
| NS | The authoritative name servers, where your records are actually managed. |
| TXT | Free text: SPF, DMARC, DKIM keys and verification tokens such as Google Search Console’s. |
| SOA | Zone metadata: primary server, contact, serial number and timers. |
| CAA | The certificate authorities allowed to issue certificates for the domain. |

A typical zone, written with documentation addresses:

```
example.com.      3600  IN  A      203.0.113.10
example.com.      3600  IN  AAAA   2001:db8::10
www.example.com.  3600  IN  CNAME  example.com.
example.com.      3600  IN  MX     10 mail.example.com.
example.com.      3600  IN  CAA    0 issue "letsencrypt.org"
```

The number after the name is the TTL in seconds, how long resolvers may cache the answer. More in our [DNS](https://yes-seo.com/glossary/dns) glossary entry.

## SPF and DMARC without the guesswork

```
example.com.         TXT  "v=spf1 include:_spf.google.com include:sendgrid.net -all"
_dmarc.example.com.  TXT  "v=DMARC1; p=quarantine; rua=mailto:dmarc-reports@example.com"
```

SPF lists the servers allowed to send mail for your domain ([RFC 7208](https://www.rfc-editor.org/rfc/rfc7208)). The mistakes that break it:

- **Two SPF records.** Only one `v=spf1` record is allowed; two cause a permanent error. Merge them.
- **More than 10 DNS lookups.** Each `include`, `a`, `mx` and `redirect` counts, nested ones included. Past 10, SPF fails.
- **`+all`**, which authorizes the entire internet. End with `-all` or `~all`.

DMARC tells receiving servers what to do with mail that fails SPF and DKIM alignment, and where to send reports. Start with `p=none` to collect reports, then move to `quarantine` and `reject` once every legitimate sender passes. Since February 2024, Gmail and Yahoo require bulk senders to publish SPF, DKIM and a DMARC record ([Google’s sender guidelines](https://support.google.com/a/answer/81126)).

## DNS and SEO

DNS rarely gets credit in SEO, but it can stop everything. Googlebot treats DNS errors much like server errors: crawling slows down and, if the failures persist, pages drop out of the index ([Google on network and DNS errors](https://developers.google.com/search/docs/crawling-indexing/http-network-errors)).

- A day or two before a migration, lower the TTL of the records you will change to a few minutes, so the switch takes effect quickly.
- Verify a domain property in [Google Search Console](https://yes-seo.com/glossary/google-search-console) with a TXT record; it covers every subdomain and protocol.
- Keep CAA in sync with the certificate authority your host uses, or renewals will fail; confirm with the [SSL checker](https://yes-seo.com/ssl-checker).

## Checking DNS from the command line

```
dig example.com A +short
dig example.com MX +short
dig _dmarc.example.com TXT +short
dig @1.1.1.1 example.com NS
```

On Windows, `nslookup -type=TXT example.com` does the same job. Asking a specific resolver, as in the last line, helps when you suspect a stale cache.

## Tips for healthy DNS

- Lower TTLs a day or two before changing hosts, then raise them again once the move is stable.
- Keep one SPF record per domain and remove includes for services you no longer use.
- Publish DMARC with p=none first and read the reports before tightening the policy.
- Add a CAA record that names only the certificate authorities you actually use.
- Write down who controls your DNS; registrar, CDN and hosting accounts are often owned by different people.

## Limits to keep in mind

Results show what public DNS returns at the moment of the lookup, so recently changed records can still show cached values until their TTL expires, and internal or split-horizon records aren’t visible. DKIM keys sit under a selector (for example `selector1._domainkey.example.com`) that can’t be discovered without its name, and DNSSEC validation isn’t part of this check; [DNSViz](https://dnsviz.net/) covers it. For registration and expiry data, use the [domain age checker](https://yes-seo.com/domain-age-checker).


## Frequently asked questions

### How long does DNS propagation take?

There is no single propagation process: resolvers keep cached answers until the record’s TTL runs out. With a TTL of 3600, most users see a change within an hour; with 86400, it can take a day. Name server changes at the registrar can take longer because of registry-level caching.

### Why can’t I put a CNAME on my root domain?

DNS rules don’t allow a CNAME to coexist with other records, and the bare domain must carry SOA and NS records. Use an A record, or your provider’s ALIAS, ANAME or CNAME flattening feature.

### How do I check my SPF record?

Enter your domain above. The SPF record is shown and parsed, with warnings for duplicates, too many lookups or a permissive ending. Make sure every service that sends mail for you is included.

### Does DNS affect SEO?

Indirectly. DNS failures stop Googlebot from reaching your site, which slows crawling and can drop pages if it lasts. A fast, reliable DNS provider also trims a little time from every first visit.

### What is a CAA record?

A DNS record that names the certificate authorities allowed to issue SSL/TLS certificates for your domain. Authorities must check it before issuing, which blocks certificates from providers you never chose.

### What does TTL mean?

Time to live: the number of seconds resolvers may cache a record before asking again. Short TTLs make changes take effect faster; long TTLs reduce lookups and soften brief outages at your DNS provider.

