DNS Records Guide
| Type | Purpose | Example Value |
|---|---|---|
| A | Maps domain to IPv4 address | 93.184.216.34 |
| AAAA | Maps domain to IPv6 address | 2606:2800:220:1:248:1893:25c8:1946 |
| CNAME | Alias — points to another domain | www → example.com |
| MX | Mail exchange — directs email | mail.example.com (priority 10) |
| TXT | Text data — SPF, DKIM, verification | v=spf1 include:_spf.google.com ~all |
| NS | Name servers for the domain | ns1.example.com |
| SOA | Start of Authority — zone info | Primary NS, serial, refresh |
| PTR | Reverse DNS — IP to domain | mail.example.com |
| SRV | Service location records | _sip._tcp.example.com |
| CAA | Authorized Certificate Authorities | 0 issue "letsencrypt.org" |
Common DNS commands:
nslookup example.com
dig example.com A
dig example.com MX
dig +short TXT example.com
dig example.com A
dig example.com MX
dig +short TXT example.com