Domains and DNS DNS records explained

Deutsch

DNS records explained

The few kinds of DNS records you will meet, what each one does, and an example of each.

DNS records tell the internet where your website and your e-mail are. Each record has a name (which part of your domain), a type and a value.

TypeWhat it doesExample
APoints a name to a server's IPv4 address. This makes your domain open your site.yourdomain.com A 203.0.113.10
AAAAThe same for an IPv6 address.yourdomain.com AAAA 2001:db8::10
CNAMEMakes a name an alias of another name.www CNAME yourdomain.com
MXSays which server receives your e-mail. A lower number is tried first.yourdomain.com MX 10 mail.yourdomain.com
TXTText for other services: proof that you own the domain, and e-mail protection (SPF, DKIM, DMARC).yourdomain.com TXT v=spf1 a mx ~all
NSNames the name servers that keep the domain's records.yourdomain.com NS ns1.se7enx.com

Rules that save trouble

  • The bare domain (@) can't be a CNAME. Use an A record there.
  • Use only one SPF record (a TXT record starting with v=spf1). Two of them break your e-mail.
  • Using Google Workspace or Microsoft 365 for e-mail? Then your MX records point to them, not to 7x.
  • Changes take from a few minutes to 48 hours to reach everyone.

Where you change records depends on where your domain's DNS lives. For e-mail protection, see Why is my e-mail going to spam?.