What a DNS record actually does
When someone types your domain into a browser, the browser does not look for a name; it looks for an IP address. DNS performs that translation, and the small entries that tell the world "where this name goes" are DNS records. Your website, your email, your subdomains and the verification strings that services ask you to add are all expressed as different record types. Knowing which type fits which job resolves most "the site is down" and "mail is not arriving" tickets in minutes.
A and AAAA: pointing a name at an IP address
An A record maps a name to an IPv4 address such as 203.0.113.10. An AAAA record does the same for an IPv6 address. If your server has a fixed IP, the root domain (example.com) must use an A record; the root cannot carry a CNAME, so there is no alternative here.
A practical note: add an AAAA record only if the server genuinely answers over IPv6. An AAAA record that points to an address nobody listens on causes slow loads or timeouts for some visitors, and the problem is hard to spot because everything looks fine from your own connection.
CNAME: pointing a name at another name
A CNAME (canonical name) says that one hostname should resolve to wherever another hostname resolves. Typical examples are www.example.com → example.com or blog.example.com → yourcompany.hostingprovider.net. The benefit is simple: when the target's IP changes, you change nothing; the provider updates its own A record and your subdomain follows.
Two rules to remember: a name that has a CNAME cannot have any other record (no MX, TXT or A on the same name), and a CNAME cannot be placed on the root domain. That is why a branded short-link domain is easiest to set up on a subdomain such as go.yourbrand.com: one CNAME and nothing else.
MX: where your email should be delivered
An MX record (mail exchanger) names the server that accepts email for your domain. Each MX record carries a priority number; the lowest number is tried first, and if that server does not answer, the next one is used. The MX target must be a hostname, not an IP, and that hostname needs its own A or AAAA record.
A common mistake is changing MX records while moving a website to a new server. Web and email are independent. Moving one does not require touching the other's records, and a large share of "mail stopped on migration day" complaints come from exactly this reflex.
TXT: verification and email security
A TXT record holds free-form text. Three uses dominate:
- Domain ownership verification: Google, Microsoft or a SaaS tool asks you to publish a specific string; they query it and confirm you control the domain.
- SPF: lists who is allowed to send email on behalf of your domain. A domain may have only one SPF record; two records make both invalid.
- DKIM and DMARC: DKIM lets receiving servers verify that outgoing mail was signed by you; DMARC tells them what to do with mail that fails those checks.
NS: who manages the zone
NS records name the servers that hold your domain's DNS records, and they are configured at your registrar. This is the record that changes when you move from one DNS provider to another. Once NS records change, the records at the old provider stop having any effect, so recreate every record at the new provider first and switch NS last. Doing it the other way round takes the site and email down at the same time.
Quick checklist: which record for which job
- Point the root domain at a server → A (plus AAAA if IPv6 is live)
- Point a subdomain at a hosted service → CNAME
- Receive email → MX plus an A record for the target host
- Email security and ownership verification → TXT
- Change DNS providers → NS
Do not ignore TTL (time to live). Lower the TTL to about 300 seconds a day before a major change; old values then expire from caches quickly during the switch. Raise it again once the change has settled.
How to verify a change
Saving a record in a control panel does not mean the rest of the world sees it. Use the DNS lookup tool to see your A, AAAA, CNAME, MX, TXT and NS records as external resolvers see them. If the expected value is missing, check in this order: a typo (trailing dot, stray space), a TTL that has not expired yet, and finally whether the NS records actually point to the provider where you made the edit.
If you plan to run branded short links on your own domain, a single CNAME is all it takes; the features page walks through the steps.