Azure Private DNS resolution issue

Peter Reji 20 Reputation points
2024-09-05T05:51:12.99+00:00

I've created a private DNS zone in Azure and linked my Vnet to it. Still, I'm not able to resolve the private records from the VMs in the Vnet? It works if I update the nameserver to 168.63.129.16 in each VMs, but is that the only way to make it work?

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
691 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,994 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,509 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deepanshukatara-6769 10,300 Reputation points
    2024-09-05T07:32:16.3933333+00:00

    Hello Peter, Welcome to MS Q&A

    To resolve private DNS records from VMs in a VNet without updating the nameserver to 168.63.129.16, you can set up a DNS server in your target virtual network. Here are the steps:

    Set up a DNS Server in the Target Virtual Network: Deploy a VM in your target virtual network and configure it as a DNS server. This DNS server should be able to forward queries to the Azure recursive resolver (168.63.129.16).

    Configure DNS Forwarder in the Source Virtual Network: Deploy another VM in your source virtual network and configure it as a DNS forwarder. This forwarder should forward DNS queries to the DNS server in your target virtual network.

    Update DNS Settings in the Source Virtual Network: Configure your source DNS server in the DNS settings of your source virtual network. This will enable DNS resolution between virtual networks and allow your on-premises machines to resolve Azure-provided host names.

    For more detailed information, you can refer to the Name resolution for resources in Azure virtual networks documentation.

    Please let us know if you have further questions

    Kindly accept answer if it helped

    Regards,

    Deepanshu

    0 comments No comments

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.