How do you delegate a subdomain to another team's AWS account?
IntermediateScenarioDNS & Service Discovery
Answer
Situation read → Subdomain delegation lets the owning team manage their zone independently.
What I'd do →
- In the child account create the hosted zone
dev.example.comand note its four nameservers - In the parent zone add an NS record
dev.example.comwith those four values - Verify with
dig NS dev.example.com +short - Remove the delegation to undo, and never keep conflicting A records for the same name in the parent zone
Why → NS records at the parent create the delegation; the child zone becomes authoritative.
Interview tip → Mention this is also how you split blast radius in a large organization.
More on DNS & Service Discovery
A customer types www.example.com in a browser. Walk through how DNS resolves it.BeginnerWhat is the difference between an A record and a CNAME, and when do you use each?BeginnerWhy can't you put a CNAME at the zone apex, and what do you use instead?BeginnerYou are moving a site to a new server. What do you do with DNS to make the cutover smooth?BeginnerHow do you find which nameservers are authoritative for a domain and query them directly?BeginnerWhat DNS records do you set up for company email?Beginner