Azure – Use AWS private DNS from Azure through site-to-site VPN

amazon-web-servicesazuredomain-name-systeminternal-dnssite-to-site-vpn

I have a site-to-site VPN setup with StrongSwan between AWS and Azure. In AWS we use Route53 in our VPC to map something like production-db.internal.com to the the AWS-provided name for our RDS cluster. How can I set up my DNS servers for the Azure Virtual Network to able to resolve production-db.internal.com to the local ip address of the RDS instance in the AWS VPC?

Best Answer

I'm not familiar with the Route53, if it has a private or public IP address, then you just need to configure the Azure VNet to use it as DNS service. If it has a private IP address, please make sure that the VMs on Azure are able to reach it through your S2S VPN.

If it doesn't expose its' IP address, then you just need to build your own DNS server. Windows Server or Linux BIND, there are several solutions to achieve your goal.

To add the custom DNS settings, please refer to the screenshot below:

Note: We need to reboot the VM to make them get the new DNS settings.

enter image description here