DNS is the system that connects your domain name to your website, email and other services. Most business owners only think about it when something breaks, often after changing hosts or email providers. Understanding a few basic record types makes these changes much safer. Here is a plain-English guide to the records you are most likely to touch.
What DNS does
DNS, the domain name system, works like a phone book for the internet. When someone types your domain, their device asks DNS servers where to find it, and DNS returns the address of the server hosting your website. Separate records tell email servers where to deliver your mail.
DNS records are stored with your DNS provider, which may be your domain registrar, your host, or a service such as Cloudflare. Knowing where your DNS is managed is the first step before making any change.
Nameservers
Nameservers tell the internet which DNS provider holds the records for your domain. They are set at your domain registrar. If your nameservers point to Cloudflare, your DNS records are managed in Cloudflare, not at the registrar.
Changing nameservers moves all DNS management to a new provider. Before doing this, recreate every record on the new provider, especially email records, or services will stop working.
| Record | Does | Example use |
|---|---|---|
| Nameserver | Chooses DNS provider | Cloudflare, registrar |
| A | Points to IPv4 address | Website host |
| CNAME | Points to another name | www, Shopify |
| MX | Routes email | Google Workspace |
| TXT | Verification and policies | SPF, DMARC, Search Console |
A and AAAA records
An A record points a domain or subdomain to an IPv4 address, such as the server hosting your website. An AAAA record does the same for an IPv6 address. Your root domain, such as yourbusiness.com, usually has an A record pointing to your web host.
When you move hosts, you typically update the A record to the new server’s IP address. The new host provides the correct value.
CNAME records
A CNAME record points one name to another name rather than an IP address. For example, www.yourbusiness.com might be a CNAME pointing to yourbusiness.com or to a hosting provider’s hostname. Services such as Shopify use CNAMEs for the www subdomain.
A name with a CNAME cannot have other records of the same name, so the root domain usually cannot be a CNAME at most providers. Some DNS providers offer CNAME flattening to work around this.
MX records
MX records tell other mail servers where to deliver email for your domain. Google Workspace, Microsoft 365 and other email providers give you specific MX records to add. Each has a priority value; lower numbers are tried first.
Changing or deleting MX records changes where email goes. If you move your website but not your email, leave MX records exactly as they are.
TXT records
TXT records hold text information used for verification and email security. Google Search Console, Microsoft 365 and many services ask you to add a TXT record to prove you own the domain. Email authentication records such as SPF and DMARC are also TXT records.
A domain can have many TXT records, but only one SPF record. Combine multiple sending services into a single SPF record.
SPF, DKIM and DMARC
SPF lists the servers allowed to send email for your domain. DKIM adds a digital signature to outgoing messages so receivers can verify they were not altered. DMARC tells receiving servers what to do when messages fail SPF or DKIM checks and where to send reports.
Together, they help your emails reach inboxes and protect your domain from spoofing. Major email providers now require them for bulk senders. See SPF, DKIM and DMARC.
TTL
TTL, time to live, tells DNS resolvers how long to cache a record, in seconds. A TTL of 3600 means one hour. Lower TTLs make changes spread faster but cause more DNS lookups; higher TTLs are more efficient but slow down changes.
Before a planned change, lower the TTL to a few minutes a day in advance. After the change is complete and stable, raise it again.
Propagation
When you change a record, resolvers that cached the old value keep using it until the TTL expires. This is often called propagation. With low TTLs, most changes are visible within minutes; with high TTLs, it can take hours.
Use online DNS checking tools to see what different resolvers around the world return for your records.
Making changes safely
Before changing DNS, take a screenshot or export of every existing record. Change only the records you need, double-check values for typos and keep email records untouched unless you are moving email. After changes, test the website and send and receive email.
Keep a document listing your DNS provider, registrar and important records. It saves time and stress in future.
Common mistakes
Common mistakes include changing nameservers without recreating email records, deleting MX records by accident, adding a second SPF record instead of editing the existing one, leaving old A records pointing to a previous host and typos in IP addresses.
Another frequent problem is not knowing where DNS is managed, leading to changes at the registrar that have no effect because nameservers point elsewhere.
DNS and security
Protect your registrar and DNS provider accounts with strong passwords and two-factor authentication. If attackers gain access, they can redirect your website or email. Enable registrar lock to prevent unauthorised transfers.
DNSSEC adds cryptographic signatures to DNS records to protect against some attacks. Many registrars and DNS providers support it with a simple setting.
Getting help
DNS changes are part of every host move, domain transfer and email setup I handle through my hosting and migration service. For moving hosts, see my zero-downtime process.
For transfers between registrars, read transferring a domain without downtime.
Key takeaways
- Find out where your DNS is managed before making any change.
- Export all records before editing and change only what you need.
- Leave MX and email TXT records untouched unless email is moving.
- Lower TTL in advance for faster planned changes.
Frequently asked questions
What happens if I delete my MX records?
Email stops being delivered to your domain until correct records are restored.
Can I have two SPF records?
No. Combine all senders into one SPF record.
How long do DNS changes take?
Minutes to hours depending on TTL and resolver caching.
Where are my DNS records?
With the provider your nameservers point to, such as your registrar, host or Cloudflare.
What is a CNAME used for?
Pointing a subdomain to another hostname, such as www to a hosting platform.
Should I enable DNSSEC?
It adds protection and is easy to enable with many providers. Disable it before changing nameservers if your provider recommends.
