Do you need a DNS Private Resolver for Virtual network gateway?

Joshua J. Cadman 20 Reputation points
2024-06-03T15:13:27.87+00:00

I am currently new to using Azure and have a resource group that has a web app and database. I have setup a Virtual Network Gateway so that I can connect to the Database locally in case I need to investigate any issues.

Do I need to setup a DNS Private Resolver to connect from the VPN (Virtual Network Gateway) to the resource/resource group?

Just looking at the pricing and costs around £4/day just to have this, and that is additional to the Virtual Network Gateway cost.

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
686 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,554 questions
{count} votes

Accepted answer
  1. TP 97,671 Reputation points
    2024-06-03T15:59:41.6+00:00

    Hi Joshua,

    Based on the information you have provided so far, I see no reason why you need DNS Private Resolver. What you can do is add an entry to your local hosts file with the private IP address of the database in Azure.

    If you have many hosts up in Azure (besides the database) that you want to connect to by name over the VPN, then you may want to consider using DNS Private Resolver, or a small VM running DNS that will perform same function [as DNS Private Resolver].

    If you are unsure how to make entry to your local hosts file please let me know and I will explain further.

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.