DNS
DNS record types
Every DNS name can hold several records of different types — addresses, aliases, mail servers, verification strings, service locations. DevOps engineers touch them constantly: pointing domains at load balancers, verifying ownership for ACM and SaaS tools, setting up email authentication so alerts and customer emails don't land in spam, delegating subdomains to other teams, and automating it all from Kubernetes. This topic covers each record type in depth, the rules that trip people up (no CNAME at the apex), Route 53 aliases, email records, and DNS response codes and security.
After this topic you can
- Choose the right record type (A, AAAA, CNAME, MX, TXT, alias)
- Set up records for a website and email
- Avoid CNAME-at-apex and similar traps
Lessons
-
1Anatomy of a DNS record
- Fields
- The zone apex
-
2Address and alias records: A, AAAA, CNAME, ALIAS
- A and AAAA
- CNAME
- Route 53 alias records
-
3Mail records: MX, SPF, DKIM, DMARC, PTR
- MX
- Why email authentication matters to DevOps
- SPF — who may send
- DKIM — signed messages
- DMARC — policy and reporting
- PTR — reverse DNS
- Email troubleshooting walkthrough
-
4TXT, SRV, CAA, NS and SOA
- TXT — free-form text with many jobs
- SRV — service location
- CAA — which CAs may issue certificates
- NS and SOA
- Other types you may meet
-
5Wildcards, delegation and automation
- Wildcard records
- Delegating subdomains
- Private records
- Weighted, latency and other routing records
- Kubernetes and DNS automation
- Moving DNS providers: the forgotten records
-
6Response codes, DNSSEC and DNS security
- Reading dig status
- DNSSEC
- Subdomain takeover
-
7Interview questions and model answers
- "Why can't you put a CNAME at the zone apex, and how do you point example.com at an ALB?"
- "Why not just use an A record with the ALB's IP?"
- "Our emails land in spam. What DNS records do you check?"
- "How would you roll out DMARC safely?"
- "What's the difference between NXDOMAIN and NOERROR with no answer?"
- "What is a dangling CNAME and why is it dangerous?"
- "How do you give the dev AWS account control of dev.example.com?"
- "What does an SRV record contain and where would you see one?"