A, AAAA, CNAME, MX, TXT records explained. Debug DNS issues. Configure a custom domain.
Learn the core concepts of DNS: How Names Become IPs and apply them in practical exercises.
A → name → IPv4 address
example.com. A 93.184.216.34
AAAA → name → IPv6 address
CNAME → alias → canonical name
www CNAME example.com.
MX → mail exchange server
@ MX 10 mail.example.com.
TXT → arbitrary text
@ TXT 'v=spf1 include:_spf.google.com ~all'
@ TXT 'google-site-verification=abc123'
NS → nameserver for this domain
TTL → time-to-live: how long to cache the record (seconds)
# Basic lookup dig example.com nslookup example.com # Specific record type dig example.com MX dig example.com TXT dig www.example.com CNAME # Authoritative nameserver dig example.com NS # Trace the full resolution dig +trace example.com # Check propagation (different DNS servers) dig @8.8.8.8 example.com # Google DNS dig @1.1.1.1 example.com # Cloudflare DNS dig @9.9.9.9 example.com # Quad9 DNS
Before moving on, confirm understanding of these key concepts: