DNS cheatsheet

It’s not DNS
There’S no way it’s DNS
It was DNS
-SSBroski

DNS Record types: A, AAAA, CNAME, ALIAS, ANAME, TXT, MX

HOST

The root (@ or blank) or subdomain (www, app, blog, etc) where you want to place the record

VALUE

Can be an IP address (A, AAAA) another domain (CNAME, ALIAS, ANAME, MX) or arbitrary value (TXT)

PRIORITY

Only for MX records you will be given what value and priority to use by your email provider

TTL

Time to Live. How long to let record values be cached Shorter = better for fast changing values Longer = faster resolution time and less traffic for your DNS server

A

Map domain name to IPv4 address Ex: example.com => 127.0.0.1

AAAA

Map domain name to IPv6 address Ex: example.com => ::1

CNAME

Map domain name to another domain name CAUTION: Don’t do this on the root (@) Ex: www.example.com => example.com

ALIAS

Map domain name to another domain name CAN do this on the root Ex: example.com => example.herokudns.com

ANAME

Another name for ALIAS (different providers name it differently; also “virtual CNAME”) Ex: example.com => example.netlify.com

TXT

Set arbitrary data on your domain record Ex: @ => my-domain-is-awesome-123

MX

Setup custom email for your domain Ex: @ => ASPMX.L.GOOGLE.COM. 1




Written on March 14, 2022


◀ Back to the Pensieve