What is DNS?
DNS, the Domain Name System, is the internet's address book. When you type a name like example.com, your device asks a DNS resolver which server to contact, and gets back a number such as an IP address. If DNS is wrong or missing, a site can't load and email can't arrive, even when the servers themselves are working fine.
DNS record types explained
| Record | What it's for |
|---|---|
| A | Points the name to an IPv4 address, such as 203.0.113.10. |
| AAAA | Points the name to an IPv6 address. |
| CNAME | Makes the name an alias of another name. Common for www and for services like Shopify or GitHub Pages. |
| MX | Lists the mail servers that receive email for the domain, in order of priority. |
| NS | Names the servers in charge of the domain's DNS. These are set at the registrar where you bought the domain. |
| TXT | Free-text notes, mostly used for email security (SPF, DKIM, DMARC) and to prove you own the domain. |
Email records: SPF and DMARC
SPF is a TXT record starting v=spf1 that lists the servers allowed to send email for your domain. DMARC lives at _dmarc.yourdomain and tells receiving servers what to do with mail that fails those checks: nothing (p=none), send it to spam (p=quarantine) or reject it (p=reject). Without them, it's easier for scammers to send email that looks like it's from you, and your own mail is more likely to land in spam. We check both automatically.
What TTL means
Each record has a TTL (time to live): how long resolvers may remember the answer before asking again. A TTL of 1 hour means a change can take up to an hour to reach everyone. Before moving a site to a new host, lower the TTL a day ahead so the switch happens quickly.
Just changed a record and nothing happened?
- Wait out the old TTL. Resolvers and devices keep the old answer until it expires.
- Check the right place. Records only count at the DNS provider named in the NS records. Editing them anywhere else has no effect.
- Clear your own cache. Restarting your device or router clears its saved answers. Our guide to fixing your own connection shows how to flush DNS.
Where these answers come from
We ask Cloudflare's public resolver (1.1.1.1) live each time, so you see what most of the internet sees right now. Your internet provider's resolver may still have an older answer cached for a while after a change.