Reputation: 792
I have hosted my web application in azure, My team accessing my application vi application gateway private ip using Azure P2P VPN connection. My application is working with private IP, I want to configure dns name and ssl certificates for my private ip.
Following things I have tired so far
Created Azure Private DNS Zone and Linked my VNets
Created A records for my private ips
Added dnssuffixes in azurevpnconfig.xml (Azure VPN Client configuration)
I tried accessing test.demo.com, I'm getting site not be reached
Not sure what I'm missing
Clarification would be helpful
Reference :
Upvotes: 1
Views: 4641
Reputation: 101
I made a docker container to solve this problem. It's a lean DNS forwarder, which forwards DNS requests to Azure DNS. Set it up as an azure container instance on a private IP and point your VPN DNS client to it. check out the example.
https://hub.docker.com/r/barrybahrami/azurednsforwarder
Upvotes: 0
Reputation: 911
As per Name resolution for resources in Azure virtual networks:
In order for the P2S VPN clients to be able to resolve Private Endpoint entries hosted on Azure Private DNS Zones, you must leverage an existing DNS Server (Forwarder or Proxy) or deploy one IaaS VM using a DNS Server role. That is required to P2S VPN clients be able to consume Azure Private DNS Zone which is exposed to 168.63.129.16 via DNS Forwarder/Proxy.
Once you have a DNS forwarder/proxy deployed on Azure, you can define the DNS server at the VNET level or set DNS Server configuration directly on client XLM profile. Post this, you will be able to resolve Private Endpoint entries from your P2S clients.
https://github.com/dmauser/PrivateLink/tree/master/DNS-Integration-P2S
Upvotes: 2