How do you manage DNS as code?
BeginnerProductionDNS & Traffic Management in Production
Answer
Terraform or octoDNS repositories with pull-request review, CI validation (octodns-validate, terraform plan), per-environment zones, and delegated subzones per team so ownership is clear. Drift is detected by scheduled plans, and manual console changes are blocked with IAM.
The same code that creates a service also creates its record, which prevents dangling records and subdomain takeover.
More on DNS & Traffic Management in Production
What TTL values do you choose for production records?BeginnerHow would you design DNS for high availability?AdvancedHow do you do a zero-downtime DNS cutover?IntermediateWhy does DNS failover take longer than expected, and how do you make it faster?AdvancedHow do Route 53 health checks work and what are their pitfalls?IntermediateHow do you run internal service DNS across multiple VPCs and accounts?Intermediate