Custom DNS servers are not showing up in OS

Apurva Pathak 635 Reputation points
2024-11-23T12:24:57.76+00:00

Hi folks,

We've setup ASR in one of our Azure hosted RHEL 7.9 VM. Today, when we did a failover from primary to secondary region, after failover completed, we set our custom DNS servers (x.x.1.4/5) at NIC of the secondary VM, however, newly applied IPs were not showing in the 'resolve.conf' file of the OS. The file was still referring to the IPs applied at the NIC of the primary NIC (x.x.0.4/5).

We tried rebooting the server many times but that didn't change anything. I found a similar issue here which was got resolved by rebooting the VM with Az CLI command, but it didn't work for me.

To make the things work we manually added the expected IPs to the 'resolve.conf' file of the secondary server but could someone please help me understand why this is happening and how can we fix it so that we don't have to alter the resolv.conf file manually.

PFB snips for reference:

Content of resolv.conf file where it can be seen that it is referring to the primary NIC's custom DNS servers (x.x.0.4/5).

{78C463F8-D7C7-420A-8A78-F20C470BF22E}

Custom DNS servers applied at NIC of the secondary VM (x.x.1.4/5).

User's image

Thanks a lot in advance!

Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
732 questions
{count} votes

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.