Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk4 min

What Do A, AAAA, MX, TXT, NS and CNAME DNS Records Do?

A and AAAA map names to IP addresses, MX routes incoming mail, TXT carries service-specific text, NS identifies authoritative nameservers, and CNAME creates an alias. Learn the rules and what to expect when records change.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

DNS records tell the internet how to find a service or handle a domain task. A and AAAA records point a name to IPv4 and IPv6 addresses; MX records route incoming email; TXT records carry service-specific text; NS records identify authoritative nameservers; and CNAME records make one name an alias of another. The correct values for a live domain come from its web host, mail provider, or DNS provider—not from a generic example.

What each DNS record means

Record What it tells DNS Common use Practical constraint
A The IPv4 address for a name Pointing a hostname to an IPv4-capable website or service Use the address supplied by the service hosting it.
AAAA The IPv6 address for a name Making a hostname resolvable over IPv6 Publish an address valid for the intended service.
MX The mail exchanger for a domain, with a preference value Routing incoming email to a provider’s mail servers Lower numeric preference values are preferred. The target must not be a CNAME alias.
TXT Text associated with a DNS name Domain verification and email authentication, including SPF, DKIM, and DMARC The required text and host/name field depend on the service being configured.
NS The authoritative nameserver for a zone or delegated subdomain Choosing where DNS for a domain or subdomain is managed Delegation is different from adding ordinary host records; follow the registrar and DNS host’s instructions.
CNAME The canonical target name for an alias Pointing a name such as www to a provider hostname Under ordinary DNS rules, a name with a CNAME cannot also carry other record data.

How to choose the right record

Pointing a website or application

Use an A record when the service gives you an IPv4 address, and an AAAA record when it gives you an IPv6 address. If the provider instead gives you a hostname to point to, it may instruct you to use a CNAME where the DNS rules and your provider’s setup allow one. Do not guess: the hosting service’s specified value determines the destination.

As an Amazon Associate I earn from qualifying purchases.

Setting up incoming email

Add the MX hostnames and preference values supplied by your mail provider. If it supplies multiple MX records, the preference numbers order them; lower numbers are preferred. The MX target must be a hostname with address records, not a CNAME alias. Mail providers may also request TXT records for domain verification or email authentication. Copy the exact host/name and text they specify.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Verifying a domain or authenticating email

A TXT record stores text at a DNS name. Services commonly use TXT records to confirm domain ownership or publish email-authentication data such as SPF, DKIM, and DMARC. TXT is only the record type: arbitrary text will not satisfy a service unless it matches that service’s required format and location.

Changing authoritative DNS

NS records identify the nameservers authoritative for a zone or delegated subdomain. Changing delegation is not the same as editing a website’s A record or adding a TXT value. Follow the instructions from the registrar and the DNS provider responsible for the intended zone. Multiple nameservers are commonly used; Cloudflare’s guidance says delegation changes can take several hours to appear throughout DNS, but that is practical guidance rather than a guaranteed global deadline.

CNAME rules and common misunderstandings

A CNAME maps an alias name to another DNS name; it does not itself provide an IP address. A browser is not redirected to a different URL by a CNAME. DNS resolution and an HTTP redirect are separate operations.

Under ordinary DNS rules, the alias name containing a CNAME cannot also contain other record data such as A, MX, TXT, or NS records. For the same reason, an MX or NS target must not be a CNAME alias. Some DNS providers offer features such as CNAME flattening at a zone apex; these are provider-specific behaviors, not a change to the ordinary DNS rule. Cloudflare documents its own flattening and proxy behavior in its DNS record types documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A CNAME target may itself resolve through another CNAME, but chains add lookup steps. Prefer a direct target when the provider supports one.

What TTL means when records change

TTL, or time to live, is the period a resolver may cache a DNS response before checking again. If you change a record, some users may continue to receive a previously cached answer while it remains valid. TTL does not promise an instant update worldwide, and provider defaults and controls vary. There is no single propagation time that applies to every DNS change.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use examples as illustrations, not configuration values

For documentation purposes, www.example.test could be shown with an illustrative A record such as 192.0.2.10, or an illustrative AAAA record such as 2001:db8::10. These are examples, not server addresses to copy into a real domain. Your web host supplies the correct address or target; your mail provider supplies MX hosts and any authentication TXT strings.

Sources and further reading

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.