What a DNS lookup tells you about a domain
A, MX, TXT, CNAME and the other DNS records explained: what each one does, and what to check when a website or email stops working.
When you type a domain into a browser, the first thing that happens isn't loading the page. Your computer asks the Domain Name System (DNS) where that domain lives. DNS is a public directory, and a DNS lookup lets you read its entries for any domain: where the website is hosted, which servers handle its email, and which services it has verified.
This guide covers the records you'll see most often, and what to check when something breaks.
The records you'll see most
| Record | What it does |
|---|---|
| A | Points the domain to an IPv4 address: the server that answers for it. |
| AAAA | The same, for an IPv6 address. |
| CNAME | Makes one name an alias of another, such as www.example.com pointing to example.com or to a hosting platform. |
| MX | Lists the mail servers that receive email for the domain, each with a priority. Lower numbers are tried first. |
| NS | Names the name servers that hold the domain's records. Change these and you change who manages your DNS. |
| TXT | Free-form text, mostly used for email security (SPF, DKIM, DMARC) and for proving ownership to services such as Google Search Console. |
| SOA | Administrative details for the zone: the primary name server, a contact address and timers. |
| CAA | Says which certificate authorities may issue SSL certificates for the domain. |
TTL: why changes take time
Every record has a TTL, or time to live, in seconds. It tells resolvers, the DNS servers run by internet providers, how long they may cache the answer. With a TTL of 3600, a resolver can keep serving the old address for up to an hour after you change it.
This is what people mean by "DNS propagation". Nothing is being pushed around the world; cached answers are expiring. If you're planning a move, lower the TTL to 300 a day or two before, make the change, then raise it again once everything works.
Checking a website
If a site doesn't load after moving to new hosting:
- Look up the A and AAAA records. Do they show the new server's address? If not, the change hasn't been made, or an old answer is still cached.
- Look up the NS records. If they still point to your old provider, edits made at the new one don't count: the old name servers are still in charge.
- If
wwwbehaves differently from the bare domain, check for a CNAME onwww, and make sure both names lead to the same place.
A Reverse IP Lookup on the address tells you the host name behind it, and the Website hosting checker shows which company owns the network.
Checking email
Email problems usually come down to three things:
- MX records must exist and point to your mail provider. A domain with a website but no MX records can't receive email.
- SPF is a TXT record that starts with
v=spf1. It lists the servers allowed to send email for your domain. A domain should have only one: two SPF records make the check fail. - DMARC is a TXT record on
_dmarc.yourdomain.comthat tells receiving servers what to do with mail that fails SPF or DKIM. Without it your domain is easier to spoof, and large providers such as Gmail are stricter with bulk senders who don't publish one.
DKIM keys live on their own names (selector._domainkey.yourdomain.com), so a lookup on the domain itself won't show them. Your email provider can tell you which selector to look up.
Verification records
Many TXT records exist only to prove you control the domain: google-site-verification=…, facebook-domain-verification=… and others like them. They're harmless, and can be removed once the service no longer needs them. Review them now and then: a verification left behind for a service you've stopped using still gives that account a claim on your domain.
Try it
Run a DNS Lookup on your own domain and check each record against what you expect. For registration details, such as the registrar and the expiry date, use the Whois Lookup.
Try it
More posts
How to check an SSL certificate, and what the details mean
Issuer, validity, covered names and the chain: how to read a certificate, and the errors that make browsers show a warning.
Read post →
PNG, JPG, WebP or GIF: choosing the right image format for the web
Which format to use for photos, logos, screenshots and animations, and how much lighter WebP can make your pages.
Read post →
The meta tags that still matter for SEO
Title, description, canonical, robots and Open Graph: the handful of tags worth getting right, and the ones you can forget.
Read post →