DNS Records for Websites: A Practical Guide to Setup, Verification, and Troubleshooting
DNSdomain setupwebsite hostingemail authenticationdomain migrationtroubleshooting

DNS Records for Websites: A Practical Guide to Setup, Verification, and Troubleshooting

BBeek Cloud Editorial Team
2026-11-08
7 min read

Learn which DNS records your website needs, how to verify them, and how to troubleshoot hosting, email, and domain migration issues.

DNS records connect your domain to a website, email service, and other online systems. This practical checklist explains which records you may need, how to configure them safely, how to verify changes, and how to troubleshoot conflicts before they affect visitors or email delivery.

Overview

The Domain Name System (DNS) translates human-readable names such as example.com into destinations that browsers and other services can use. When you launch a website on cloud hosting, DNS tells the domain where to find that site. When you use a separate email provider, DNS tells receiving mail servers where to deliver messages and helps verify that legitimate systems may send mail for your domain.

DNS is managed through a DNS hosting provider, which may be your domain registrar, cloud hosting platform, or a separate DNS service. Before editing anything, identify where the authoritative nameservers are managed. Making changes in the wrong dashboard is a common reason that an apparently correct record has no effect.

Use this reference table as a starting point. Exact hostnames, target values, and verification requirements come from your website host or service provider, so copy those values carefully rather than relying on examples.

RecordPurposeTypical useImportant checks
AMaps a hostname to an IPv4 address.Connects an apex domain such as example.com to a server.Use the exact IPv4 address supplied by the host. Do not add a protocol or path.
AAAAMaps a hostname to an IPv6 address.Provides IPv6 access when the hosting service supports it.Remove or correct stale values if they direct visitors to an old server.
CNAMEPoints one hostname to another hostname.Connects www.example.com to a hosting target or platform address.A CNAME generally cannot coexist with other records at the same hostname.
MXIdentifies mail servers for a domain.Routes incoming email to an email provider.Preserve the provider’s priority values and remove obsolete MX records only when migration is complete.
TXTStores text used for verification and policy information.Domain ownership checks, SPF, DKIM, and DMARC configuration.Follow the provider’s exact formatting. Multiple TXT records may be valid, but SPF should be handled as one policy.
NSSpecifies the authoritative nameservers for a domain or delegated subdomain.Moves DNS management to a hosting or dedicated DNS provider.Changing NS records changes where all other DNS records are managed.

An A record versus a CNAME is not simply a matter of preference. An A record points directly to an IP address, while a CNAME follows another hostname. Many providers use a CNAME for www and provide a separate method for the apex domain, such as an A record or provider-specific aliasing. Use the hosting provider’s documented connection method, especially when connecting a website builder or managed cloud hosting service.

Checklist by scenario

Connecting a new website

  1. Confirm the domain name and decide whether visitors should use the apex domain, the www version, or both.
  2. Find the authoritative nameservers with the registrar or DNS provider. Make a backup or export of the current DNS zone if the interface supports it.
  3. Open the hosting provider’s domain connection instructions and copy the required A, AAAA, CNAME, or verification records.
  4. Create each record with the correct name, value, and TTL. A blank or @ host field commonly represents the apex domain, but interfaces differ.
  5. Keep only records that are required. Review redirects and canonical domain settings in the website platform so the alternate hostname resolves consistently.
  6. Verify the result from more than one DNS resolver, then test the site over HTTPS in a private browser window.

Setting up or migrating email

  1. List the current MX records before making changes. They determine where new messages are delivered.
  2. Add the new provider’s MX records and priorities exactly as supplied. Avoid mixing old and new records unless the provider explicitly instructs you to do so.
  3. Publish SPF as a TXT record if the provider requires it. If an SPF record already exists, update the existing policy rather than creating a second SPF record.
  4. Add the provider’s DKIM record, often a TXT record or a CNAME under a selector-specific hostname.
  5. Add a DMARC TXT record after reviewing the provider’s guidance and your sending sources. Begin with a monitoring-oriented approach if you are still identifying legitimate senders.
  6. Send test messages in both directions and inspect authentication results in the receiving mailbox. Check contact forms, transactional email, newsletters, and other services that send as your domain.

Changing hosts or moving DNS

  1. Inventory A, AAAA, CNAME, MX, TXT, NS, redirects, verification tokens, and any records used by subdomains.
  2. Lower the TTL ahead of a planned change if your provider recommends it, while allowing existing cached answers time to expire.
  3. Build the new DNS zone before switching nameservers. Compare it record by record with the old zone.
  4. Change nameservers only after the new zone contains the records needed for the website, email, certificates, integrations, and monitoring.
  5. Monitor the old and new hosting environments during the transition. For a broader migration plan, see the website migration to cloud hosting checklist.

What to double-check

DNS interfaces often make small formatting differences significant. Check the following before saving:

  • Hostname: Enter only the host label expected by the interface. Some dashboards automatically append your domain, so entering the full domain can create an unintended name.
  • Target formatting: A record values are IP addresses; CNAME and MX values are hostnames. Do not add https://, slashes, ports, or page paths.
  • Trailing dots: Some systems display fully qualified hostnames with a final dot and others add it automatically. Follow the interface’s convention.
  • TTL: TTL controls how long resolvers may cache an answer. It affects how quickly a change is observed, but it does not provide a guaranteed global propagation time.
  • Duplicate records: Multiple A records can intentionally distribute traffic, but accidental duplicates may send visitors to different servers. Multiple CNAME records for one hostname are generally a conflict.
  • IPv6: An outdated AAAA record can make some visitors reach an old or unconfigured server even when the A record is correct.
  • Email authentication: Confirm that SPF includes every legitimate sending service, that DKIM is enabled for the correct selector, and that DMARC reflects your current operating model.
  • SSL and redirects: DNS only directs traffic. HTTPS certificates, forced redirects, application routing, and the preferred domain are configured separately in the hosting platform or web server.

For verification, use the DNS provider’s inspection tools, a reputable DNS lookup service, or command-line utilities such as dig and nslookup. Query the specific record type and hostname instead of checking only whether the homepage loads. A website can appear available while email or a subdomain remains incorrectly configured.

Common mistakes

  • Editing the wrong DNS provider: Check the domain’s active NS records before changing A or MX records.
  • Replacing the whole zone unnecessarily: A website connection may require one or two records, while a full replacement can remove email, verification, or service integrations.
  • Leaving old MX records in place: This can produce inconsistent mail routing during or after an email migration.
  • Creating a second SPF record: SPF is normally published as one TXT policy. Combine authorized senders according to the relevant provider instructions.
  • Confusing a URL with a DNS value: DNS records do not contain page paths such as /login and usually do not contain protocols.
  • Assuming a browser test proves propagation: Your browser, network, and recursive resolver may have cached an answer. Check authoritative and independent resolvers.
  • Changing nameservers without recreating records: The new provider may start with an empty zone, taking the website and email offline.
  • Ignoring subdomains: Services such as app, shop, staging, and mail may use separate records and need their own migration checks.

If a change fails, record the expected value, actual lookup result, timestamp, and resolver used. This simple change log helps distinguish a typo, caching delay, provider-side validation issue, or server configuration problem.

When to revisit

Keep this checklist available before any event that changes where a domain or service is hosted. Revisit it before moving to cloud hosting, changing website builders, migrating email, renewing or replacing certificate automation, transferring a domain, adding a third-party marketing or payment service, or launching a new subdomain.

It is also useful before seasonal planning cycles and major campaigns. Review the DNS inventory, confirm website and email ownership, and verify that monitoring and backup contacts still work. If your hosting workflow, DNS provider interface, email platform, or authentication requirements change, compare the provider’s current instructions with your saved records rather than assuming the old setup still applies.

For a practical final pass, export or document the current DNS zone, verify the authoritative nameservers, test the apex and www hostnames, query A and AAAA records, confirm MX delivery, inspect SPF, DKIM, and DMARC results, and note the date of the review. Pair this with a cloud hosting security checklist and website uptime monitoring workflow so DNS changes are part of an observable maintenance process rather than an emergency fix.

Related Topics

#DNS#domain setup#website hosting#email authentication#domain migration#troubleshooting
B

Beek Cloud Editorial Team

Cloud Hosting Editor

Senior editor and content strategist. Writing about technology, design, and the future of digital media. Follow along for deep dives into the industry's moving parts.