A DNS record is one entry in your domain’s zone that answers a question about the name. The common types are A and AAAA (IPv4 and IPv6 addresses), CNAME (an alias), MX (mail servers), TXT (free text such as SPF) and NS (the authoritative name servers). WeRegister’s DNS management lists A, AAAA, CNAME, MX and TXT.
What does each DNS record type do?
Here is one example of each, using documentation addresses and example.eu as a placeholder:
example.eu. A 192.0.2.10
example.eu. AAAA 2001:db8::1
www.example.eu. CNAME example.eu.
example.eu. MX 10 mail.example.eu.
example.eu. TXT "v=spf1 include:_spf.mailprovider.example ~all"
example.eu. NS ns1.dnshost.example.
- A holds a 32-bit IPv4 address. Several A records on one name list several addresses.
- AAAA holds a single IPv6 address. It does for IPv6 what A does for IPv4.
- CNAME makes one name an alias of another, the “canonical name”.
- MX names a mail server and carries a preference number: lower values are preferred.
- TXT holds descriptive text. SPF, DKIM, DMARC and domain verification all live in TXT records.
- NS names the servers that are authoritative for the domain.
What are SOA and CAA records?
An SOA record marks the start of a zone and names its primary name server and the mailbox of the person responsible. A CAA record lets the domain holder specify which certification authorities may issue certificates for the domain.
Which DNS mistakes are the most common?
A CNAME on the bare domain. The standard says that when a name has a CNAME, no other data should be present, and the bare domain always carries other records such as NS. Use an A record there and keep CNAME for names like www.
An MX or NS record pointing to a CNAME. RFC 2181 says these values must not be an alias. Point them at a name that has its own A or AAAA record.
Two SPF records. If a lookup finds more than one, SPF evaluation returns a permerror, which means the check fails. Merge everything into one TXT record: our guide to SPF, DKIM and DMARC explains how.
A forgotten AAAA record. If you move to a new server and update only the A record, visitors on IPv6 may still reach the old one.
Key facts
- A and AAAA map a name to an IPv4 or IPv6 address; CNAME maps a name to another name.
- A CNAME cannot share a name with other records, so it does not belong on the bare domain.
- MX records need a preference number, and the lowest number is tried first.
- A domain should have a single SPF record, however many mail services it uses.
- NS and SOA describe the zone itself; most changes you make day to day involve A, CNAME, MX and TXT.
- A change in any record takes effect as caches expire: see DNS propagation and TTL.
Frequently asked questions
Do I need both an A and an AAAA record? No. A alone is enough. Add AAAA only if your host gives you an IPv6 address.
Can I have several MX records? Yes. Each has a preference number, and senders try the lowest first, then fall back to the others.
Where do I add these records? For a domain managed by WeRegister, in the panel, from the DNS management of your domain. The steps for a website are in how to point a .eu domain at a website.
What is the difference between a record type and its value? The type says what kind of answer it is; the value is the answer itself, such as an address or a host name.
Manage your records on the DNS and DNSSEC management page. For related reading, see email on your .eu domain and DNSSEC explained.