Opscraft
DNS

DNS record types

Must-know7 lessons · 26 min · 3 tests ·

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.

Stage 1 · Foundations

Know these first

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

  1. 1Anatomy of a DNS record 3 min read
    • Fields
    • The zone apex
  2. 2Address and alias records: A, AAAA, CNAME, ALIAS 4 min read
    • A and AAAA
    • CNAME
    • Route 53 alias records
  3. 3Mail records: MX, SPF, DKIM, DMARC, PTR 6 min read
    • MX
    • Why email authentication matters to DevOps
    • SPF — who may send
    • DKIM — signed messages
    • DMARC — policy and reporting
    • PTR — reverse DNS
    • Email troubleshooting walkthrough
  4. 4TXT, SRV, CAA, NS and SOA 3 min read
    • TXT — free-form text with many jobs
    • SRV — service location
    • CAA — which CAs may issue certificates
    • NS and SOA
    • Other types you may meet
  5. 5Wildcards, delegation and automation 3 min read
    • Wildcard records
    • Delegating subdomains
    • Private records
    • Weighted, latency and other routing records
    • Kubernetes and DNS automation
    • Moving DNS providers: the forgotten records
  6. 6Response codes, DNSSEC and DNS security 4 min read
    • Reading dig status
    • DNSSEC
    • Subdomain takeover
  7. 7Interview questions and model answers 3 min read
    • "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?"