DNS Records Reference Guide: A Record, CNAME, MX, TXT, and Verification Workflows
DNSemail setupdomain managementwebsite configurationdomain security

DNS Records Reference Guide: A Record, CNAME, MX, TXT, and Verification Workflows

OOriginally.online Editorial Team
2026-12-01
7 min read

A practical DNS record guide covering A, AAAA, CNAME, MX, TXT, NS, and CAA records for websites, email, verification, and security.

DNS records tell the internet where your website, email, verification services, and security controls belong. This reference guide explains the main record types, shows which one to use in common situations, and gives you a practical review checklist before and after every DNS change.

Overview

The Domain Name System (DNS) connects a readable domain, such as example.com, to services that use technical addresses and instructions. Your domain registrar, hosting provider, email provider, or a separate DNS host may provide the control panel where these records are managed. The interface varies, but the core record types are broadly consistent.

Before editing anything, identify where your domain’s authoritative DNS is hosted. Changing records at a registrar will not have an effect if the domain uses nameservers managed elsewhere. You can usually find the active nameservers in your domain management account or by using a DNS lookup tool.

RecordPrimary purposeTypical value
APoints a hostname to an IPv4 address203.0.113.10
AAAAPoints a hostname to an IPv6 address2001:db8::10
CNAMEPoints one hostname to another hostnamewww.example.com
MXIdentifies servers that receive emailmail.example.net plus priority
TXTStores text for verification and email policiesv=spf1 ...
NSIdentifies authoritative nameserversns1.dns-provider.example
CAALimits which certificate authorities may issue certificates0 issue "ca.example"

A DNS record normally includes a name or host, a record type, a value, and a time to live (TTL). Some providers also ask for priority, especially for MX records. A blank host field may represent the root domain, while an entry such as www represents www.example.com; check the provider’s instructions because control panels label these fields differently.

Checklist by scenario

Connecting a website to hosting

  1. Confirm whether the hosting provider supplied an IPv4 address, IPv6 address, hostname, or nameservers.
  2. Use an A record for the root domain when the host gives you an IPv4 address.
  3. Use an AAAA record when the host gives you an IPv6 address and your service supports it.
  4. Use a CNAME for a subdomain when the provider gives you a hostname, such as site.host.example.
  5. Check whether both the root domain and www need records. They may use different record types.
  6. Keep the hosting provider’s required record exactly as supplied, including punctuation and any trailing dot if the control panel requires one.

An A record and a CNAME are not interchangeable. An A record contains an IP address; a CNAME contains another hostname. Do not place a hostname in an A record or an IP address in a CNAME field.

Setting up business email or a mailbox provider

  1. Collect every MX record required by the email provider.
  2. Enter each MX record with its specified priority. Lower numbers commonly indicate higher delivery priority, but follow the provider’s instructions.
  3. Remove obsolete MX records only after confirming that the old service is no longer needed.
  4. Add the provider’s TXT records for email authentication, such as SPF or other verification instructions.
  5. Check whether the provider requires a custom return-path, DKIM, or other subdomain record.
  6. Send a test message to and from the domain after the records have had time to update.

MX records control where incoming email is delivered. They do not configure an email application by themselves. Mail clients may still need separate incoming and outgoing server settings supplied by the email provider.

Verifying ownership of a domain

  1. Copy the verification record from the service you are connecting.
  2. Use a TXT record unless the service specifically requests a CNAME, HTML file, or another method.
  3. Place the value at the requested hostname. A service may ask for the root domain, www, or a unique label such as _verify.
  4. Preserve the complete token, including hyphens, underscores, equal signs, and capitalization where applicable.
  5. Run verification from the service’s dashboard only after confirming that the record is publicly visible.
  6. Leave the record in place if the service uses it for continuing ownership checks, unless its instructions say it can be removed.

Managing certificates and HTTPS

Certificate systems may request a temporary or ongoing DNS challenge, commonly through a TXT record. Some providers also support CAA records to specify which certificate authorities may issue certificates for your domain. Add CAA records only when you understand which certificate authorities your website, hosting platform, CDN, and other services use. An overly restrictive CAA policy can prevent legitimate certificate renewal.

Creating a subdomain

For a blog, shop, landing page, staging environment, or application, first decide whether the destination is an IP address or another hostname. Use an A or AAAA record for an address and a CNAME for a hostname. Document the purpose of each subdomain so it is not later mistaken for an unused entry.

What to double-check

  • Authoritative DNS: Make sure you are editing the DNS provider named by the domain’s active NS records.
  • Hostname format: Some dashboards expect www; others expect the full domain or automatically append the domain name. Avoid creating an unintended name such as www.example.com.example.com.
  • Duplicate records: Multiple A, AAAA, MX, or TXT records can be valid, but duplicates may conflict with the service’s instructions.
  • TTL: A shorter TTL can make planned changes easier to adjust, but it does not force every resolver to refresh immediately. Restore the provider’s recommended setting after testing if appropriate.
  • Email authentication: Keep one deliberate SPF policy for the domain where possible, and confirm that it includes every authorized sending service. Do not combine separate SPF TXT strings casually.
  • Existing services: Review website, email, verification, payment, analytics, and security records before replacing nameservers or importing a DNS zone.
  • HTTPS: After changing website DNS, confirm that the certificate covers the exact hostname visitors use, including both the root domain and any subdomain.
  • Documentation: Record the change date, reason, previous value, new value, and service owner. This is especially useful during a website handover or migration.

DNS updates are cached by resolvers. A change may appear in one lookup and not another while caches refresh. Avoid repeatedly changing the same record because an impatient sequence of edits can make troubleshooting harder. For broader launch planning, review the SSL certificate setup and HTTPS troubleshooting checklist and the website uptime monitoring and incident response runbook.

Common mistakes

  • Changing nameservers without copying existing records: This can interrupt email, verification, or other connected services.
  • Deleting old records too early: Keep a rollback note and confirm that the old service is retired before removal.
  • Using a CNAME at the root when the provider does not support it: Ask the DNS or hosting provider which root-domain option they support.
  • Entering an MX record without priority: Mail systems may reject an incomplete entry or route messages unpredictably.
  • Adding several SPF records: Multiple independent SPF policies can produce an invalid or ineffective configuration. Follow the sending provider’s consolidation guidance.
  • Adding quotes incorrectly: TXT values may display with quotation marks in one panel and without them in another. Copy the provider’s format and verify the published result.
  • Assuming DNS controls every redirect: A redirect from one URL to another usually belongs in the website, hosting, or CDN configuration, not in a DNS record.
  • Forgetting renewal and ownership access: Keep registrar access, DNS access, hosting access, and recovery details documented. The website ownership handover checklist can help organize them.

When to revisit

Return to this checklist before connecting a new website, moving web hosting, changing email providers, launching a subdomain, adding a verification service, or renewing a certificate. Revisit it after a domain transfer, nameserver change, major DNS provider migration, or unexplained website or email outage.

For a routine review, compare the live DNS zone with your service inventory. Remove records that belong to retired services only after confirming that no active workflow depends on them. Verify that registrar contact and renewal settings are current, and keep a recent backup or export of the DNS configuration where your provider supports one. The domain renewal planning guide is useful for the registrar side of this review.

Before making a change, use this short action list:

  1. Write down the intended outcome: website, email, verification, subdomain, or certificate.
  2. Confirm the active DNS host and record supplied by the destination service.
  3. Export or document the current records.
  4. Change only the necessary entry and capture the old value.
  5. Check the result from more than one DNS lookup location or resolver.
  6. Test the actual service, not just the record: load the website, send mail, complete verification, or renew the certificate.
  7. Record the final configuration and set a reminder to remove temporary verification records when the service permits it.

DNS is easier to manage when every record has a purpose, an owner, and a documented change history. Use this reference whenever the domain’s services change, and pair it with a tested backup and recovery process such as the website backup and recovery plan.

Related Topics

#DNS#email setup#domain management#website configuration#domain security
O

Originally.online Editorial Team

Editorial team

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.