I have an AWS VPC with Private Hosted Zone (PHZ) setup so all machines launched within the VPC can resolve my console-defined domains, for example a1.mydomain
.
I would like for on-site machines at the end of my VPN (not in VPC but connected to a VPN server machine in the VPC) to be able to resolve these PHZ domains as well.
Is this possible?
In order to resolve PHZ, the request must come from the DNS resolver of the VPC:
a1.mydomain
to the VPC DNS resolver which is the third address of your VPC network (.2)Using a bind9 + OpenVPN works quite well