gotinfo.net by VARØ Industries

DNS Record Types Explained: A, AAAA, CNAME, MX, NS, TXT, CAA and More

GotInfo guides  |  VARØ Industries

A domain lookup returns a stack of records with short, cryptic names. Each type answers one specific question about the domain. Once you know which question each one answers, reading a zone becomes quick, and most DNS problems turn out to be one record answering the wrong question.

How to read a record

Every DNS record has the same parts. In zone file form, one line looks like this:

www.example.com. 3600 IN A 203.0.113.10

The common types at a glance

TypeQuestion it answersExample data
AWhat is this name's IPv4 address?203.0.113.10
AAAAWhat is this name's IPv6 address?2001:db8::10
CNAMEWhich other name is this one an alias for?shop.example-platform.net.
MXWhich servers accept email for this domain, in what order?10 mx1.example.com.
NSWhich nameservers are authoritative for this zone?ns1.dns-host.example.
SOAWho is the primary source for the zone, and what are its timers?Primary server, contact, serial, refresh, retry, expire, minimum
TXTWhat free-form text is published here?"v=spf1 include:_spf.mail-host.example -all"
CAAWhich certificate authorities may issue certificates for this name?0 issue "letsencrypt.org"
PTRWhat name belongs to this IP address? (reverse DNS)mail.example.com.
SRVWhich host and port provide a named service?10 5 5060 sip.example.com.
DSWhich key signs this zone with DNSSEC? (published in the parent zone)Key tag, algorithm, digest type, digest

A and AAAA

These are the records that make a website load. A name can have several A records, and resolvers return all of them; clients pick one, which spreads load in a simple way. If you publish an AAAA record, the server must actually work over IPv6, because many visitors' devices will try it first. A broken AAAA record is a classic cause of "the site is slow for some people only". The IPv4 vs IPv6 guide explains why.

CNAME and its rules

A CNAME says "this name is really that other name; look that one up instead". It is how you point shop.example.com at a hosted store platform without hard-coding its addresses, which the platform can then change freely.

The DNS standards impose one important rule: a name that has a CNAME cannot have any other record. That has two practical consequences.

Chains of CNAMEs work but add lookups, and MX and NS records should point to names that have A or AAAA records directly rather than to aliases.

MX: where email goes

MX records list mail servers with a preference number. Lower numbers are tried first. With 10 mx1.example.com and 20 mx2.example.com, senders try mx1 and fall back to mx2 if it does not answer. Equal numbers share the load. The target must be a hostname, never an IP address. A domain with no MX records gets mail delivered to its A record, a fallback that surprises people. If a domain should never receive mail, a "null MX" (0 .) says so explicitly.

NS and SOA

NS records name the authoritative nameservers. They appear in two places: in your zone, and in the parent zone (for example, the .com registry), where they are set through your registrar. If the two lists disagree, some resolvers will use one set and some the other, which causes confusing, intermittent results. The SOA record holds the zone's serial number, which increases with each change on traditional DNS setups, and the timers secondary servers use. Its last field controls how long resolvers cache "name does not exist" answers.

TXT: the catch-all

TXT records carry text that other systems read. The most common uses are:

Those three email records have their own guide: SPF, DKIM and DMARC. Old verification tokens are harmless but accumulate; clearing ones for services you no longer use keeps the zone readable.

CAA: limiting certificate issuance

A CAA record lists the certificate authorities allowed to issue certificates for a name. Authorities are required to check it before issuing. 0 issue "letsencrypt.org" allows only Let's Encrypt; issuewild controls wildcard certificates separately; and an iodef entry gives an address for reports of refused requests. With no CAA record, any publicly trusted authority may issue. If you add one, remember to include every authority you actually use, including any your CDN or hosting provider uses on your behalf, or renewals will fail. You can see which authorities have issued for a domain with the certificate transparency search.

PTR: reverse DNS

PTR records map addresses back to names, and live in special zones controlled by whoever holds the IP block, usually your hosting provider or ISP, not in your own domain's zone. They matter most for mail servers: many receivers distrust mail from an address whose PTR is missing or does not match the server's name. The GotInfo home page shows the PTR hostname for your own address.

Newer types you may see

Lookups increasingly show HTTPS and SVCB records, which tell browsers in advance which protocols and endpoints a site supports. DS and DNSKEY records relate to DNSSEC, which signs DNS answers so they cannot be forged in transit. The domain lookup shows whether a DS record is present, which tells you DNSSEC is enabled for the domain.

Troubleshooting checklist

  1. Site not loading: check the A and AAAA records point to the right server, and that both protocols work on it.
  2. Email bouncing: check MX targets exist and resolve, and that the preference order is what you intended.
  3. Mail going to spam: check SPF, DKIM, DMARC and the sending server's PTR record.
  4. Certificate renewal failing: check CAA lists the authority in use.
  5. Record "not showing up": confirm you added it at the DNS host the registry actually points to (compare NS records), and allow for negative caching.

See every record type for a domain in one place: open the GotInfo domain lookup.

Related guides