DNS Records Explained: A, AAAA, CNAME, MX, TXT, and SRV Records
DNSA recordsCNAMEMX recordsTXT recordsSRV records

DNS Records Explained: A, AAAA, CNAME, MX, TXT, and SRV Records

ddummies.cloud Editorial Team
2026-12-02
7 min read

Understand A, AAAA, CNAME, MX, TXT, and SRV records, add them safely, and know when to review your DNS zone.

DNS records are the instructions that connect a domain name to websites, email services, verification tools, and other online systems. This guide explains the most common DNS record types—A, AAAA, CNAME, MX, TXT, and SRV—so you can identify what each one does, add records safely, and know when to review your DNS zone again.

Overview

The Domain Name System (DNS) translates human-readable names such as example.com into information that computers and services can use. A DNS zone is the collection of records managed for a domain. Depending on the provider, you may edit that zone at your domain registrar, web host, DNS hosting provider, or a service such as a reverse proxy and DNS platform.

DNS records are usually made up of several fields:

  • Type: The kind of instruction, such as A, MX, or TXT.
  • Name or host: The domain or subdomain the record applies to.
  • Value or target: The address, hostname, mail server, or text supplied by the service.
  • Priority: Used by record types such as MX and SRV when more than one destination is available.
  • TTL: The time recursive DNS resolvers may cache the record before checking again.

Provider dashboards use different labels. A field called Host may mean the record name, while Points to, Target, or Value may mean the destination. Always compare the provider’s instructions with the field labels before saving a change.

DNS record types at a glance

TypePurposeTypical nameTypical valueCommon mistake
AMaps a name to an IPv4 address.@ or a subdomain such as wwwAn IPv4 address, such as 192.0.2.10Using an IPv6 address or adding a URL instead of an address.
AAAAMaps a name to an IPv6 address.@ or a subdomainAn IPv6 address, such as 2001:db8::10Adding an IPv4 address to an AAAA record.
CNAMEPoints a name to another hostname.A subdomain such as wwwA hostname such as sites.example-provider.comUsing a full URL or creating a conflicting record at the same name.
MXSpecifies where email for a domain should be delivered.@ or the domain nameA mail server hostname, plus priorityEntering an IP address or removing required mail servers.
TXTStores text used for verification, email authentication, and service instructions.@, _dmarc, or a provider-specified hostA quoted or unquoted text string, depending on the dashboardPutting the value in the name field or changing punctuation.
SRVIdentifies a service, port, protocol, priority, and target hostname.Usually a structured name such as _service._tcpPriority, weight, port, and targetOmitting underscores or entering the fields in the wrong order.

What to track

When you audit DNS, do not look only for records that are currently failing. Track ownership, purpose, and expected values so that an old record is easier to recognize later.

A and AAAA records for websites

An A record points a hostname to an IPv4 address. An AAAA record performs a similar role for IPv6. A root domain may use the name @ in one dashboard, while a subdomain such as app.example.com is commonly entered as app.

Use an A record when a service gives you an IPv4 address. Use an AAAA record only when the service provides an IPv6 address and your hosting or network setup supports it. Do not place https://, a path, or a port number in either record.

CNAME records and the A record comparison

A CNAME points one hostname to another hostname. It is useful when a platform gives you a target such as customer.example-service.com rather than an IP address. A CNAME can follow changes made by the target provider, while an A record contains a direct IPv4 address.

As a practical rule, use the exact record type requested by the service. Do not add a CNAME and an A record for the same hostname unless your DNS provider explicitly supports a special alias feature. A hostname with conflicting records may produce inconsistent results.

MX records for custom-domain email

MX records tell sending systems which mail servers accept email for your domain. An MX record normally includes a mail server hostname and a priority number. Lower numerical priority is commonly preferred when several MX records are present, but follow the email provider’s instructions rather than guessing.

MX values should point to hostnames, not web URLs. Before replacing existing MX records, confirm whether they support an active mailbox, forwarding service, or other mail flow. A careless change can interrupt delivery even when the website continues to work.

TXT records for verification and email authentication

TXT records hold text supplied by another service. Common uses include proving domain control, publishing sender policies, and adding email authentication records such as SPF or DMARC. A provider may ask you to create a record at the root domain, at a name beginning with an underscore, or at a unique verification hostname.

Copy TXT values exactly. Preserve required characters, separators, and punctuation. Some dashboards automatically add quotation marks, while others expect you to enter the value without them. If a service asks for a long value, do not shorten it to make it fit visually in the form.

SRV records for service discovery

SRV records are used when an application needs more than a hostname. They can describe a service name, transport protocol, port, priority, weight, and destination. The record name often follows the pattern _service._tcp or _service._udp. Because the format is structured, copy each field into the matching dashboard field instead of treating the complete instruction as one text value.

Cadence and checkpoints

DNS does not need constant editing, but it benefits from a repeatable review process. A monthly or quarterly check is reasonable for domains that support active websites, email, or multiple third-party services. Lower-risk personal domains can be reviewed less often, provided renewal and security controls are monitored separately.

At each checkpoint, record:

  • The authoritative nameservers for the domain and who controls the DNS zone.
  • Each active record’s purpose, owner, and expected destination.
  • A and AAAA records used by production websites and applications.
  • MX records and the email provider responsible for each destination.
  • TXT records used for verification, SPF, DKIM-related configuration, or DMARC.
  • Temporary records that should be removed after a migration or verification.
  • The date of the last review and the person or team who approved changes.

Before making a change, lower-risk testing is preferable to editing several records at once. Save a copy or screenshot of the current zone, write down the intended change, and note how you will verify success. For larger environments, use a documented approval and rollback process; the DNS Change Management Runbook provides a practical framework.

TTL affects how long a changed answer may remain cached. A lower TTL can make planned changes easier to adjust, but it does not guarantee that every resolver will update immediately. Make changes during a suitable maintenance window when the record affects production traffic or email.

How to interpret changes

A DNS result that looks wrong does not always mean the record was entered incorrectly. First check which nameservers are authoritative for the domain. If you edited records at the wrong provider, the change may be valid in that dashboard but irrelevant to the live domain.

Next, compare the record name, type, and value with the service’s instructions. Common errors include entering www.example.com when the dashboard expects only www, adding a URL to an A record, leaving a trailing dot where a provider does not expect one, and creating both an old and new record for the same purpose.

Test the exact hostname that users or applications access. The root domain, www, a mail hostname, and a verification hostname can all have different records. Check from more than one network or use a DNS propagation checker, while remembering that cached responses can differ during the transition.

If a website resolves but displays the wrong site, review hosting configuration as well as DNS. DNS may correctly reach an IP address while the web server routes the hostname to the wrong application. If email fails, inspect MX records first, then review sender authentication records and the mail provider’s status or setup instructions.

When to revisit

Revisit this guide whenever you connect a new service, move a website, change email providers, add a subdomain, or receive a domain-verification request. Also schedule a monthly or quarterly DNS review when a domain supports business operations, multiple applications, or custom email.

Use this action list for your next review:

  1. Confirm who controls the authoritative nameservers.
  2. Export or document the current DNS records before editing.
  3. Label every record by purpose and owner.
  4. Remove expired verification and migration records only after confirming they are no longer needed.
  5. Check A and AAAA records for correct website destinations.
  6. Confirm that MX records still match the active email provider.
  7. Review TXT and SRV records for exact values and current service requirements.
  8. Test the affected hostname after saving changes and record the result.

Keep DNS documentation with your broader launch and security procedures. For a new website, combine this review with the website launch checklist. For unexpected resolution errors, use the DNS troubleshooting checklist. A small, current record inventory makes future changes safer and reduces the chance that an old DNS entry becomes an invisible dependency.

Related Topics

#DNS#A records#CNAME#MX records#TXT records#SRV records
d

dummies.cloud 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.