DNS record types explained simply
Updated 7/20/2026
DNS is the internet's address book: it translates domain names into IP addresses and routes services. Here are the record types you will use most.
A and AAAA
Link a domain to an IP address. A for IPv4, AAAA for IPv6.
example.com. A 203.0.113.10
example.com. AAAA 2001:db8::10
CNAME
An alias that points one name to another name (not directly to an IP):
www.example.com. CNAME example.com.
MX
Tells where email for the domain is delivered:
example.com. MX 10 mail.example.com.
TXT
Free text, used for verification and email security (SPF, DKIM, DMARC), see SPF, DKIM and DMARC records.
NS
Points to the name servers that manage the domain. You set these at the registrar when you move DNS (for example to Cloudflare).
Next steps
To link a domain to your server, see How to point a domain to your VPS.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
Email DNS records: SPF, DKIM and DMARC
Set up SPF, DKIM and DMARC so your emails reach the inbox, not spam.
Updated 7/20/2026Networking & DNSHow to connect two servers over a private network
Link your servers through an encrypted WireGuard tunnel, so they communicate securely without exposing services to the internet.
Updated 7/20/2026Networking & DNSWhat is a CDN and when you need one
A CDN delivers content close to visitors, faster. Here is how it works and when it is worth it.
Updated 7/20/2026