Resolving route53 private hosted zone cnames internally

amazon-route53amazon-web-servicesdomain-name-systeminternal-dnsunbound

We have a DNS server outside of AWS, inside we have route53 with some private hosted zones. I want cnames on the private hosted zones to be available internally (when you access them inside the office).

Due to my limited experience with DNS, I'm not sure what's the best way to go on about this. I have looked at unbound but not sure if it's the right tool. Do I need to forward my requests to the main DNS server when a private hosted zone is requested?

Best Answer

You will need to:

  • Setup IPsec VPN to connect between AWS and office, and
  • Setup Dnsmasq in both AWS and office sites to proxy your DNS requests.

The most important option of Dnsmasq in ths case is --domain=, to specify DNS domains to forward. You can use this option to pass DNS requests to your private Route53 domain (office clients -> Dnsmasq/Unbound in office -> Dnsmasq in AWS -> Route53).

Related Topic