DNS Records Explained: A, CNAME, MX, TXT and When to Use Each
DNS decides where your website and email live. This guide explains each common record type in plain language, with the everyday tasks that use them.

On this page
The Domain Name System, or DNS, is the address book of the internet. When someone types your domain or sends you an email, DNS tells their computer which server to contact. Most of the time it works unnoticed. But the moment you connect a new email service, verify your domain with a third party or move hosting, you need to edit DNS records, and a small mistake can take a website or mailbox offline.
How DNS works in one paragraph
Your domain's registrar records which nameservers are in charge of the domain. Those nameservers hold the domain's DNS zone: a list of records. When a visitor's computer needs your website's address, it asks a resolver, usually run by their internet provider, which asks your nameservers and caches the answer for the time set by the record's TTL. That cache is why DNS changes do not appear everywhere at once.
The record types you will meet
A record
An A record points a name at an IPv4 address, such as 203.0.113.10. The record for the bare domain (often shown as @) and the one for www are usually A records or a CNAME pointing to the bare domain. When you move hosting, these are the records you change.
AAAA record
The same as an A record, but for an IPv6 address. If your host supports IPv6 it will give you the address; if you move hosts, update or remove old AAAA records too, or some visitors will still reach the old server.
CNAME record
A CNAME makes one name an alias of another. For example, shop.yourbusiness.com can be a CNAME for a hosted shop platform's address. When the platform changes its server's IP, your subdomain follows automatically. A name that has a CNAME cannot have other records, which is why the bare domain normally uses an A record instead.
MX record
MX records tell other mail servers where to deliver email for your domain. Each has a priority number; lower numbers are tried first. If you use Google Workspace, Microsoft 365 or your host's mail service, the provider gives you the MX values. Changing MX records moves your incoming email, so do it deliberately and at the same time as you set up the new mailboxes.
TXT record
TXT records hold free text. In practice they are used for two things: proving ownership of the domain to services such as search consoles and SaaS tools, and publishing email security policies. SPF, DKIM and DMARC are all TXT records; our guide to SPF, DKIM and DMARC explains them.
NS record
NS records list the nameservers responsible for the domain or for a delegated subdomain. You rarely edit them inside the zone; to move DNS to another provider, you change the nameservers at your registrar.
SRV and CAA records
SRV records point a specific service, such as voice calling or chat, at a server and port. CAA records list the certificate authorities allowed to issue SSL certificates for your domain, a small extra protection against mis-issued certificates.
Everyday tasks
- Point a domain at new hosting: either change the nameservers to the host's, or keep your DNS provider and change the A (and AAAA) records.
- Use an outside email service: replace the MX records with the provider's, and add its SPF and DKIM records.
- Verify a domain: add the TXT record the service gives you, exactly as shown.
- Create a subdomain: add an A record pointing at a server, or a CNAME pointing at another name.
- Stop email forgery: publish SPF, DKIM and DMARC.
TTL and why changes take time
Every record has a TTL in seconds. A TTL of 3600 means resolvers can keep the old value for up to an hour after you change it. Before a planned change, such as moving to a new host, lower the TTL to a few minutes a day in advance. After the change has settled, raise it again; longer TTLs mean fewer lookups and slightly faster first visits.
Checking your records
You can see what the internet sees right now with our free DNS lookup: enter a domain or subdomain to see its A, AAAA, CNAME, MX, NS and TXT records with their TTLs. To find out which registrar holds a domain and which nameservers it uses, use the WHOIS lookup.
Mistakes that cause outages
- Deleting records you did not recognise. A strange TXT record may be the verification for your email service. Find out what it does first.
- Changing nameservers without copying the zone. The new provider starts empty; copy every record before switching.
- Two SPF records. Merge them into one.
- A CNAME on the bare domain. It breaks email and other records; use an A record.
- Forgetting AAAA records when moving hosts.
Always copy the existing value somewhere before you change it. If anything goes wrong, you can put it back in seconds.
Frequently asked questions
How long do DNS changes take?
Often minutes, but it depends on the TTL of the old record. Allow up to a day or two for every network to pick up a change.
What is the difference between nameservers and DNS records?
Nameservers decide who hosts your DNS. DNS records are the entries inside that service, such as A and MX records.
Can my website and email be with different providers?
Yes. The A records point to your web host and the MX records point to your email provider.
Why does my new record not show yet?
Resolvers are still using the cached old value. Wait for the old TTL to run out, then check again.
Is DNS management included with a domain?
With us, yes: domains that use our nameservers and our hosting plans include DNS management from the client area or control panel.
Found this useful? Share it with someone who needs it.
Join the conversation
What is your perspective?
Share a useful experience or ask a question. Keep the discussion constructive and avoid sharing private customer information.





Leave a comment