DNS Virtual Network Gateway with Cloud Resources

Robert Pangrazio 1 Reputation point
2021-11-16T14:54:50.287+00:00

I have been trying to find an answer to this, but I can't, so if there is one out there please let me know.

I am trying to access DNS resolved cloud-based resources from on-premises computers via a Virtual Network Gateway I have set up. I have two VNets and am set up to ping from Vnet 1 to Vnet 2 and VPN clients and all combinations of the three, but only via IP address.

I would like to be able to have a machine on either VNet be able to access any VPN devices via DNS resolution and vice versa.

Thanks in advance for any advice.

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
602 questions
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,395 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,184 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Cristian SPIRIDON 4,471 Reputation points
    2021-11-17T20:41:24.273+00:00

    Hi,

    I think you can solve your use case by setting up a private DNS in Azure:
    https://learn.microsoft.com/en-us/azure/dns/private-dns-getstarted-powershell

    Hope this helps!

    0 comments No comments

  2. Bhanu Ejjagiri 261 Reputation points Microsoft Employee
    2021-11-23T18:27:59.477+00:00

    Hi @Robert Pangrazio
    You can access any Azure resource over it’s FQDN by creating a DNS record, and here you need to create a private DNS record to have the VM responded over it’s name instead of it’s IP.

    • You will need to create DNS records if the VM is Windows Domain joined and Windows DNS is in place.
    • Else, I encourage you to create an Azure Private DNS --> link your Azure private networks --> create/update the VM related record of the VM's.

    Reference Articles:
    https://learn.microsoft.com/en-us/azure/dns/private-dns-getstarted-portal
    https://learn.microsoft.com/en-us/azure/dns/private-dns-privatednszone

    Please feel free to let me know if you have any further queries and I will be happy to assist you accordingly.


  3. Robert Pangrazio 1 Reputation point
    2021-11-29T18:19:18.567+00:00

    I am in the process of verifying that this will solve my problem. Once I do, I'll update the question


  4. Robert Pangrazio 1 Reputation point
    2021-11-29T20:14:34.46+00:00

    I'm not seeing what I am looking for. So maybe if I give more detail into what I am trying to do.

    I have a Virtual Network Gateway that allows my on-premise Linux computers to connect via OpenVPN. They are successfully connecting and I am able to ping cloud VM's and ping them from the cloud VMs.

    I would like to be able to access them via DNS. However, due to the nature of the Linux machines, they will not be maintaining a constant VPN connection as they are shut down and restarted on a regular, if not daily basis. So the IP address created by the VNG may change.

    These machines can number in the hundreds, so maintaining a DNS record database would be onerous.

    What I am looking for is a way I can dynamically add host information into a DNS system, and then have my on-premises Linux machines use that DNS system to resolve hostnames for cloud resources, and cloud resources use it to resolve the Linux machines.

    I hope that makes my request a little more clear.

    Thanks in advance

    0 comments No comments