Hi Arunprasad K,
Welcome to the Microsoft Q&A Platform. Thank you for posting your query here.
As per my understanding, linking /run/NetworkManager/resolv.conf
and /etc/resolv.conf
is generally may not be necessary if your system is already managing DNS resolution correctly.
I have reproduced your scenario and tried to update the dns of RHEL 9.4 server by following the steps in the documentation mentioned and it worked.
The initial configuration of the /etc/resolv.conf
file in an Azure Linux VM is as shown
Configured custom DNS servers at the Azure virtual network or network interface level.
Restart the NetworkManager
service,and then check the /etc/resolv.conf
file. This file reflects the new DNS settings configured in the VNet
Can you please confirm if you have followed above steps and can you please confirm If dhclient
is responsible for DNS management or NetworkManager
to manage DNS.
To check this open the NetworkManager.conf
file and check [main] dns=default.
If the comment is helpful, please click "upvote" to let us know.
Let me know if you have any further queries!