How to change the DNS of Vnet and virtual machine created in Azure to on-premises DNS

yusuke-s 0 Reputation points
2023-11-27T07:53:14.9566667+00:00

We become indebted to.

When changing the DNS of Vnets and virtual machines created in Azure to on-premises DNS,

Changes on Azure

Virtual network → Overview → DNS server and

Network Interface → DNS Server → Custom

Will entering the IP of the on-premises DNS server in the 2 settings solve the problem?

On-premises and Azure communicate using ExpressRoute.

Also, will there be any changes to the virtual machine when changing the above two settings?

(RDP suddenly crashes, restarts automatically, etc.)

Azure Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
173 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 47,046 Reputation points Microsoft Employee
    2023-11-29T05:51:39.5066667+00:00

    @yusuke-s

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    I understand that you would like to update your DNS of VNET to use OnPrem DNS Servers.

    Yes, the configurations you've made is correct.

    To update VNET:

    • Virtual network → Overview → DNS server

    To update NIC:

    • Network Interface → DNS Server → Custom

    There will not be any changes to the VM, however, for the settings to apply:

    • You must restart your VM

    Thanks,

    Kapil


    Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.

    1 person found this answer helpful.
    0 comments No comments

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.