DNS Records Explained: A Practical Reference for Websites, Email, and Verification
DNSdomain setupemail DNSsubdomainsdomain verification

DNS Records Explained: A Practical Reference for Websites, Email, and Verification

WWebhost.link Editorial Team
2026-11-30
7 min read

A practical DNS reference covering A, CNAME, MX, TXT, NS, SRV, and CAA records, TTLs, conflicts, validation, and rollback.

DNS records control where a domain sends web traffic, email, verification requests, and service connections. This practical reference explains which record to use in common situations, how to review a change before publishing it, and how to keep a rollback path if the result is not what you expected.

Overview

The Domain Name System (DNS) translates human-readable names such as example.com into destinations that browsers, mail servers, and online services can understand. DNS is separate from your website hosting account, although your hosting provider may offer a DNS editor in the same control panel.

Before changing anything, identify where the domain's authoritative DNS is managed. It may be your registrar, web host, CDN, or a dedicated DNS provider. Changes made in a non-authoritative dashboard will not affect the public domain. Look for the active nameservers at the registrar, then make edits in the service those nameservers point to.

Use the following reference when deciding which record to add or edit:

RecordPrimary purposeExampleImportant notes
APoints a hostname to an IPv4 address@ 203.0.113.10Use an IPv4 address only. The root domain may be shown as @.
AAAAPoints a hostname to an IPv6 address@ 2001:db8::10Add only when the destination is configured for IPv6 and tested.
CNAMEAliases one hostname to another hostnamewww example.host.comThe target is a hostname, not an IP address. A CNAME generally cannot coexist with other records at the same name.
MXSpecifies mail servers for a domain@ 10 mail.example.netLower preference numbers are normally tried first. Follow the mail provider's exact values.
TXTStores text used for verification and email authentication@ "v=spf1 include:mail.example ~all"Common uses include SPF, DKIM, DMARC, and SaaS ownership verification.
NSDelegates DNS authority to nameserverssub ns1.example.netChanging nameservers can move control of an entire zone. Treat this as a high-impact change.
SRVPublishes the host and port for a service_service._tcp 10 5 443 host.example.netUse the service's required name, protocol, priority, weight, port, and target.
CAARestricts which certificate authorities may issue certificates@ 0 issue "ca.example"Use only when you understand the certificate issuance workflow and required authorities.

TTL, or time to live, controls how long recursive DNS resolvers may cache a response. A shorter TTL can make planned changes easier to revise, while a longer TTL can reduce repeated lookups. TTL does not guarantee instant propagation: resolvers may retain older data until their cached value expires, and local applications can cache results separately.

Checklist by scenario

Connecting a domain to website hosting

  1. Confirm whether the host asks for an A record, AAAA record, CNAME, or nameserver change.
  2. For an IPv4 destination, edit or add the required A record for the root domain and any requested subdomain.
  3. For www, use the host's documented method. This may be a CNAME to the root domain or to a provider hostname.
  4. Check for conflicting A, AAAA, or CNAME records at the same hostname.
  5. Confirm that the hosting account recognizes the domain and that HTTPS is configured separately.

Do not assume that changing DNS automatically installs an SSL certificate. For HTTPS setup and renewal steps, see How to Install and Renew an SSL Certificate.

Adding or repairing email DNS

  1. Copy the mail provider's MX records exactly, including each server name and preference value.
  2. Remove obsolete MX records only after confirming that no active mail service depends on them.
  3. Add the provider's TXT records for SPF, DKIM, and DMARC when required.
  4. Check whether DKIM uses a selector hostname such as selector1._domainkey; the selector must match the provider's configuration.
  5. Send test messages in both directions and inspect authentication results where available.

SPF is published as TXT and should be managed carefully. Multiple independent SPF records at the same domain can produce an invalid result, so consolidate authorized senders according to the mail provider's instructions rather than adding unrelated SPF strings.

Verifying ownership of a service

  1. Choose TXT when the service supplies a TXT verification value.
  2. Choose CNAME when it supplies a hostname and specifically requests a CNAME.
  3. Enter the host or name exactly as requested. Some dashboards expect only a label such as verify, while others expect the full domain.
  4. Preserve quotation marks only when the DNS interface or service documentation requires them.
  5. Leave the record in place if the service uses it for continuing verification, unless its documentation says it can be removed.

Routing a subdomain

Use an A or AAAA record when the subdomain must point directly to an IP address, such as app.example.com to a server. Use a CNAME when the destination is another hostname managed by a provider. A CNAME is usually the better fit for a hosted SaaS endpoint because the provider can change its underlying IP without requiring you to edit the record.

Using advanced service or certificate records

SRV records are appropriate only when an application gives you a complete service definition. CAA records can help document or restrict certificate issuance, but an incorrect CAA policy may prevent a legitimate certificate request. Treat both as controlled changes and retain the provider's original instructions with your DNS change record.

What to double-check before publishing

  • Authoritative location: Verify that you are editing the DNS zone served by the active nameservers.
  • Record name: Check whether the interface automatically appends the domain. Entering a full name where only a label is expected can create an unintended hostname.
  • Record type: An A record cannot use a hostname as its value, and a CNAME cannot use an IP address as its target.
  • Conflicts: Review existing records at the same name. A CNAME normally cannot share a name with A, AAAA, MX, TXT, or other data records.
  • Mail continuity: Never replace MX records during a website change unless you intend to move email as well.
  • Formatting: Preserve dots in fully qualified hostnames when the provider requires them, and check whether the panel adds them automatically.
  • TTL: Record the old TTL and value before editing. A moderate TTL is often suitable for routine operation; temporarily lowering it before a planned migration can make correction more flexible, but cached answers may remain.
  • Rollback: Export or copy the existing zone, note the exact timestamp, and save the previous value for every changed record.

Use a written change note with the hostname, type, old value, new value, TTL, reason, and validation result. For larger hosting changes, pair this DNS checklist with a website staging workflow and a backup and recovery plan.

Common mistakes

Changing nameservers when a record edit was enough: Nameserver changes can affect every DNS record, including email and verification. Use them only when you are deliberately moving DNS authority.

Leaving old records after a migration: Stale A, AAAA, MX, or verification records can send users or messages to an old provider. Review the complete zone after the new service works.

Creating duplicate email authentication records: Duplicate SPF records are a frequent configuration error. DKIM and DMARC also require exact hostnames and values, so copy them carefully.

Testing only from one network: A local resolver may show cached data. Check the result from more than one network or use DNS lookup tools that query different resolvers, then test the actual website or mail flow.

Assuming propagation is broken: First confirm the authoritative answer, record spelling, TTL, and conflicting records. If the authoritative zone is correct, remaining differences are often cache-related.

For record-specific diagnostic steps, use DNS Troubleshooting by Record Type.

When to revisit

Return to this checklist before launching a new subdomain, changing hosting, migrating email, adding a SaaS integration, renewing a certificate through a different provider, or transferring a domain. Revisit the full DNS zone during scheduled infrastructure reviews and before seasonal planning cycles when traffic, campaigns, or business systems may change.

Update your internal record examples whenever a provider changes its setup instructions or your DNS editor changes its field names. Keep an inventory of domains, authoritative nameservers, active services, and record owners so that a future change does not depend on one person's memory.

  1. Capture the current zone and identify the records you intend to change.
  2. Confirm the provider's current instructions and required record type.
  3. Lower TTL ahead of a planned migration only when there is a reason to do so.
  4. Make the smallest possible edit, then record the timestamp and new values.
  5. Verify authoritative DNS, public lookup results, the website, email delivery, or service ownership as applicable.
  6. Keep the rollback values until the change has been tested and the old service is no longer needed.

DNS changes are easiest to manage when treated as infrastructure changes rather than one-off form edits. A clear inventory, a narrow change, and a documented rollback plan reduce the risk of taking a website, mailbox, or connected service offline.

Related Topics

#DNS#domain setup#email DNS#subdomains#domain verification
W

Webhost.link Editorial Team

Technical SEO 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.