DNS records connect a domain to a website, email service, verification system, or security policy. This practical reference explains what the main record types do, which record to use in common business scenarios, how to add records safely, and how to troubleshoot changes without interrupting website or email operations.
Overview
The Domain Name System (DNS) translates human-readable domain names into service destinations. When someone visits www.example.com, sends mail to an address at that domain, or verifies ownership of it, a DNS lookup helps the requesting system find the right destination or instruction.
DNS is usually managed wherever the domain’s authoritative nameservers are configured. That may be a registrar, a managed DNS provider, or a cloud hosting platform. Your website hosting account and DNS hosting account can be with different providers. Before changing anything, identify the active nameservers; editing records in an inactive DNS dashboard will not change the live domain.
Use the following table as a quick reference. Field names vary between providers, but the underlying purpose is broadly consistent.
| Record | Primary purpose | Typical value | Common use |
|---|---|---|---|
| A | Maps a hostname to an IPv4 address | An IPv4 address | Pointing a root domain or subdomain to a web server |
| AAAA | Maps a hostname to an IPv6 address | An IPv6 address | Providing an IPv6 destination for a website or service |
| CNAME | Aliases one hostname to another hostname | A target hostname | Connecting www or a service subdomain to a platform hostname |
| MX | Specifies mail servers for a domain | Mail server hostname plus priority | Routing incoming email |
| TXT | Stores text instructions or verification data | Provider-supplied text | SPF, DKIM, DMARC, and domain ownership verification |
| NS | Delegates DNS authority to nameservers | Nameserver hostnames | Moving DNS management to another provider or delegating a subdomain |
| CAA | States which certificate authorities may issue certificates | Certificate-authority policy data | Adding an extra control around SSL certificate issuance |
A record versus CNAME is a common point of confusion. An A record points directly to an IP address, while a CNAME points to another hostname. A CNAME can be useful when a hosting platform gives you a destination that may change, because the platform can manage the destination behind that hostname. Provider instructions should take priority, especially for the root or apex domain, where some DNS systems offer special alias features instead of a standard CNAME.
Checklist by scenario
Pointing a website to new hosting
- Confirm the hosting provider’s required records and whether it expects the root domain,
www, or both. - Record the current A, AAAA, and CNAME values before making changes.
- Add the exact A or AAAA value supplied by the host, or add the required CNAME for a subdomain.
- Configure both the root domain and
wwwintentionally. They do not automatically behave the same way. - Keep unrelated records, especially MX and email-authentication TXT records, unless the provider explicitly says they must change.
- Test the website over HTTPS after the DNS change and confirm that redirects, forms, and important subdomains still work.
If you are moving a site to cloud hosting, DNS is only one part of the cutover. Review application configuration, databases, backups, SSL, and monitoring as well. The guide to deploying a website to cloud hosting provides a broader production checklist.
Connecting business email
- Obtain the mail provider’s MX hostnames and priority values.
- Remove obsolete MX records only after confirming that the new provider is ready to receive mail.
- Add the provider’s SPF instruction as a TXT record, taking care not to create conflicting SPF policies.
- Publish DKIM records exactly as supplied, often under a selector subdomain.
- Add or update DMARC gradually according to your monitoring and delivery requirements.
- Send test messages to and from several relevant mailboxes, then inspect authentication results where available.
Do not assume that website hosting includes email hosting. A domain and hosting package may use separate systems for web traffic and mail. For a more detailed email checklist, see the SPF, DKIM, and DMARC setup guide.
Verifying a domain for a third-party service
- Read the service’s instructions and identify the record type, host or name, and value.
- Use a TXT record when the service requests a text token, unless it specifically requests a CNAME or another type.
- Enter the host exactly as the DNS provider expects. Some interfaces append the domain automatically, while others require a fully qualified name.
- Do not delete existing verification, email, or security records to make room for the new token.
- Start verification after saving the record and allow time for recursive resolvers to observe the change.
Adding a subdomain for an application or service
Choose a clear hostname such as app, status, or shop, then use the record type specified by the destination provider. An A record is appropriate when you control the IP address. A CNAME is generally appropriate when the destination is another hostname. Document the owner, purpose, target, and date so the record can be reviewed later.
What to double-check
Nameservers and record scope
Check the domain’s authoritative nameservers before troubleshooting. A managed DNS setup is active only when the domain delegates authority to that provider. Also check whether the record applies to the apex domain or a subdomain. In many dashboards, entering @ represents the root domain, while entering www represents www.example.com; confirm the interface’s convention rather than guessing.
TTL and propagation
TTL, or time to live, tells recursive DNS resolvers how long they may cache a response. A lower TTL can make planned changes easier to roll out, but it does not force every resolver to refresh immediately. A higher TTL can reduce repeated lookups but may leave old answers cached for longer. Before a planned migration, review the existing TTL and make changes early enough for the intended transition window.
Propagation is not a single global event. Different networks, devices, and resolvers may show old and new answers at different times. Use a DNS propagation checker as one comparison tool, but also query the authoritative nameservers directly and test from the networks that matter to your business.
Conflicts and dependencies
Look for duplicate A, AAAA, or CNAME records that point to different destinations. An old AAAA record can cause some visitors to reach an unintended IPv6 server even when the A record is correct. MX records should point to mail hosts, not web servers. CNAME records generally should not be combined with other records at the same hostname unless your provider documents special support for that arrangement.
For HTTPS, verify that the certificate covers every hostname customers use and that the hosting platform has recognized the domain. DNS can direct traffic correctly while an incomplete SSL configuration still produces browser warnings. See the SSL certificate troubleshooting guide when DNS and certificate symptoms overlap.
Common mistakes
- Editing the wrong DNS dashboard: The registrar may not be the active DNS host. Confirm nameservers first.
- Replacing all records during a website move: This can break email, verification, payment integrations, or security controls. Change only what the migration requires.
- Adding a CNAME at the root without checking support: Standard DNS has restrictions at the apex. Follow the provider’s documented alias or flattening method when offered.
- Leaving an obsolete AAAA record: IPv6 traffic may continue reaching an old or unconfigured server.
- Creating multiple SPF TXT policies: Email systems may not interpret separate SPF policies as intended. Consolidate authorized senders according to your mail provider’s guidance.
- Assuming saved means live everywhere: Check authoritative answers, cached answers, and the actual service separately.
- Testing only one hostname: Test the root domain,
www, important subdomains, mail flow, and HTTPS where applicable. - Failing to document changes: Without a record of the old value and reason for the change, future troubleshooting becomes slower and riskier.
When a website appears unavailable, separate DNS symptoms from hosting symptoms. If the name resolves to the expected address but the server returns an error, inspect application and hosting logs rather than repeatedly changing DNS. The reference on website error logs can help distinguish these cases.
When to revisit
Revisit this checklist before changing web hosting, launching a new subdomain, switching email providers, adding a SaaS integration, renewing a certificate, or transferring a domain. Review it before seasonal planning cycles if your business expects a campaign, product launch, or traffic change that depends on reliable website and email access.
After every DNS change, save the date, purpose, previous value, new value, expected result, and person responsible. Recheck the live result after the relevant caching period, then confirm website availability, email delivery, SSL, and monitoring alerts. Remove records only when their owner and dependency are understood.
Finally, revisit provider instructions when workflows or tools change. DNS interfaces may label fields differently, and hosting platforms may introduce new verification or routing requirements. A short annual review of nameservers, critical records, email authentication, certificate controls, and renewal ownership can prevent an old configuration from becoming a business outage.