DNS Records Reference for Websites and Email: A, AAAA, CNAME, MX, TXT, and More
DNS recordsmanaged DNSemail DNSdomain configurationwebsite infrastructure

DNS Records Reference for Websites and Email: A, AAAA, CNAME, MX, TXT, and More

DDigitalHouse Editorial
2026-11-17
7 min read

A practical DNS records reference explaining A, AAAA, CNAME, MX, TXT, NS, SRV, and CAA records for websites and email.

DNS records connect a domain to websites, email systems, verification services, and other infrastructure. This reference explains which record to use, shows practical examples, and provides a reusable checklist for configuring or reviewing a DNS zone without guessing.

Overview

The Domain Name System (DNS) translates human-readable names such as example.com into destinations that computers can use. A DNS zone is a collection of records for a domain and its subdomains. Each record has a type, a name, a value, and usually a time to live (TTL), which tells resolvers how long they may cache the answer.

Most website and email tasks use a small group of record types:

  • A: points a hostname to an IPv4 address.
  • AAAA: points a hostname to an IPv6 address.
  • CNAME: aliases one hostname to another hostname.
  • MX: identifies mail servers and their delivery priority.
  • TXT: stores human-readable or machine-checked text, commonly for verification and email authentication.
  • NS: identifies the authoritative name servers for a zone or delegated subdomain.
  • SRV: publishes the host and port for certain network services.
  • CAA: states which certificate authorities may issue certificates for a domain.

DNS is separate from domain registration and web hosting. A registrar holds the registration, a DNS hosting service publishes the zone, and a web host serves the site. These functions may be provided by one company or several. Before editing records, confirm where the domain's authoritative DNS is managed. Changes made in the wrong control panel will not affect the live zone.

For a broader operational review, use the DNS Audit Checklist. If you are moving a site, the domain transfer and cloud hosting cutover checklist covers sequencing and verification.

Checklist by scenario

Point a website to an IPv4 server

Use an A record when the hosting provider gives you an IPv4 address.

FieldExample
TypeA
Name@ or the provider's representation of the root domain
Value203.0.113.10
TTLProvider default, or a shorter value during a planned change

Add a separate record for www if your provider requires one. A common arrangement is an A record for the root domain and a CNAME from www to the root domain, but follow the host's exact instructions. Do not keep an old A record pointing to a previous server unless both destinations are intentionally active.

Point a website to IPv6

Use an AAAA record for an IPv6 address. It follows the same basic pattern as an A record, but the value is an IPv6 address such as 2001:db8::10. Add it only when the destination and network path are configured for IPv6. An incorrect AAAA record can cause some visitors to reach a broken destination even when the A record works.

Create an alias for a subdomain

Use a CNAME when a provider gives you a hostname rather than an IP address, for example:

Type: CNAME
Name: shop
Value: store.provider.example

This makes shop.example.com resolve through the provider hostname. A CNAME generally cannot coexist with other record types at the same name, and many DNS systems do not permit a conventional CNAME at the zone apex. Some providers offer an apex-alias feature under a different name; treat that as provider-specific and verify the implementation before using it.

Configure email delivery

Use MX records to tell sending systems where to deliver mail for a domain. An MX record includes a mail host and a priority number. Lower preference values are normally tried before higher values.

Type: MX
Name: @
Priority: 10
Value: mail.example.net

Mail hosts named in MX records should resolve to A or AAAA records. Do not point an MX record to an IP address directly, and do not use a CNAME as the mail host unless the email provider explicitly documents a supported arrangement.

Verify ownership or publish email policy

TXT records are used for many unrelated purposes. A service may ask you to publish a token at the root domain or at a specific host such as _verify. Copy the name and value exactly, including punctuation. For email, TXT records commonly publish SPF, DKIM, and DMARC information:

  • SPF: identifies permitted sending systems for a domain. Keep the domain's SPF policy coordinated so multiple separate SPF records are not published accidentally.
  • DKIM: publishes a public key at a selector such as selector1._domainkey. The email provider supplies the selector and value.
  • DMARC: is published at _dmarc and describes how receiving systems should handle messages that do not align with the domain's authentication policy. Begin with the provider's documented policy and review reports or outcomes before tightening it.

These values are provider-specific. Do not substitute examples for the exact records supplied by your email platform.

Delegate a subdomain or identify authoritative servers

NS records identify the name servers authoritative for a domain or delegated subdomain. At the registered-domain level, the registrar usually controls which name servers are assigned. NS records can also delegate a subdomain, such as dev.example.com, to a separate DNS service. Delegation changes are structural; make sure the new authoritative service contains all required records before switching.

Publish a service endpoint

SRV records describe a service, protocol, priority, weight, port, and target. A record may look like:

Type: SRV
Name: _service._tcp
Priority: 10
Weight: 5
Port: 443
Target: service.example.net

The exact service label, protocol, port, and target come from the application documentation. SRV records are not a general replacement for A, AAAA, or CNAME records.

Limit certificate-authority choices

CAA records can state which certificate authorities are authorized to issue certificates for a domain. A provider may request a record such as:

Type: CAA
Name: @
Value: 0 issue "ca.example"

Use the certificate authority's exact documented value. A restrictive CAA record can prevent certificate issuance if it omits a required authority or validation method. Review it before changing certificate providers.

What to double-check

  1. Authoritative DNS: Check the domain's assigned name servers before editing records.
  2. Host-name format: Some panels expect @, some expect a blank field, and some expect the full domain name. Follow the panel's convention.
  3. Trailing dots: DNS interfaces handle fully qualified names differently. Avoid adding or removing a trailing dot unless the interface or documentation explains the format.
  4. Existing records: Search for duplicates, stale hosting records, old verification tokens, and conflicting A, AAAA, or CNAME entries.
  5. TTL: Lowering TTL before a planned migration can make later changes easier to observe, but cached answers may still persist until their previous TTL expires. Restore a sensible operational value after the change if appropriate.
  6. Email dependencies: Confirm MX, SPF, DKIM, and DMARC records together. Changing a mail provider often requires coordinated updates rather than one isolated record.
  7. Security and certificates: Check CAA records and any DNS-based certificate-validation records before renewing or moving TLS services.
  8. Testing from more than one resolver: Query the record directly and test the actual website, mail flow, or verification process. A DNS lookup alone does not prove that the application is configured correctly.

Keep a change log containing the date, record name, old value, new value, reason, and person or system that made the change. This is especially useful for domains supporting multiple environments or teams.

Common mistakes

  • Editing the registrar instead of the DNS host: Registration and DNS management may be separate.
  • Leaving two website destinations active: An old A record alongside a new one can produce inconsistent results unless deliberate traffic distribution is configured.
  • Creating a CNAME conflict: A CNAME at a name that also has A, AAAA, MX, or TXT records may be rejected or behave unexpectedly.
  • Using the wrong MX value: MX records need a hostname and priority, not a web URL or an IP address.
  • Publishing multiple SPF records: Combine authorized mechanisms according to the email provider's instructions rather than creating separate SPF policies.
  • Copying a token into the wrong name: Verification records often belong on a unique subdomain, not at the root.
  • Changing several unrelated records at once: Small, documented changes make troubleshooting and rollback easier.
  • Assuming DNS changes are instantaneous: Caches, resolver behavior, and application configuration can make a change appear gradual.

If a record looks correct but the service still fails, compare the live authoritative answer with the value shown in the DNS dashboard. The Managed DNS Troubleshooting Guide provides a process for separating DNS, SSL, hosting, and email problems.

When to revisit

Revisit this checklist whenever you register a domain, connect a new website, change cloud hosting, transfer a domain, add a subdomain, migrate email, renew certificates, or introduce a third-party verification service. It is also worth reviewing before seasonal planning cycles, major launches, and infrastructure changes.

At least twice a year, or whenever your workflows or tools change, audit the zone for stale records and undocumented dependencies. Confirm that the authoritative name servers are still intentional, the website records point to the current platform, email authentication reflects current senders, and CAA restrictions still match certificate operations. If the domain has changed providers, use the domain portfolio management guide to review ownership, renewal, and access controls alongside DNS.

Practical next step: export or record the current zone, list every service that depends on it, and mark each record as required, temporary, or unknown. Resolve the unknown entries before deleting anything. Then make one documented change, verify it through an authoritative lookup and the affected application, and retain the result for the next review.

Related Topics

#DNS records#managed DNS#email DNS#domain configuration#website infrastructure
D

DigitalHouse Editorial

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