A DNS zone is made of records. These are the ones you will meet most.
| Record | What it does | Example |
|---|---|---|
| A | Points a name to an IPv4 address. | example.com to 203.0.113.10 |
| AAAA | The same, for an IPv6 address. | |
| CNAME | Makes a name an alias for another name. | www.example.com to example.com |
| MX | Says which mail server receives email for the domain. | |
| TXT | Holds text, used to prove ownership and to protect email (SPF, DKIM, DMARC). | |
| NS | Says which nameservers hold the zone. | |
| PTR | Points an IP address back to a name ("reverse DNS"). |
The basic record: it sends a name to a server. Use one for your website's address, or for a
subdomain such as shop.example.com that is hosted somewhere else.
An alias. The name you give it takes whatever address the other name has, so if that changes you
do not have to update both. Two rules: a CNAME cannot sit on the bare domain (example.com), only on
names such as www or shop, and a name that has a CNAME cannot have any other record.
Controls where email goes. Each MX record has a priority: mail goes to the lowest number first and to the others only if that server cannot be reached. If you use a separate email service, you change the MX records to the ones it gives you.
A free-text record. Services ask you to add one to prove you own the domain, and email security uses them: see SPF, DKIM and DMARC.
Reverse DNS: an IP address pointing back to a name. Mail servers check it, so it matters for servers that send email. It is set by whoever owns the IP address, not in your own zone.