Can't seem to update the resolv.conf

4 posts / 0 new
Last post
#1 Thu, 04/09/2015 - 22:54
prince_mallow

Can't seem to update the resolv.conf

I'm having an issue with the DNS so I want to update them.

In the past I simply needed to go to Webmin -> Network Configuration -> Hostname and DNS Client and then add whatever entries I needed in the DNS Server section. When I add something there and save and check the resolv.conf file my settings are successfully changed. However in the next window that comes up, if I click apply changes, the resolv.conf file reverts back.

I've done some reading around and most people are saying it's because of DHCP settings, however our servers are static, so this cannot be an issue. The resolv.conf file does have a line that says # Generated by NetworkManager; but I clearly remember adding DNS servers this way before in the past.

Why is it not working now?

CENTOS 6.6 i386

Fri, 04/10/2015 - 09:35
andreychek

Howdy,

What if you make the changes manually -- edit /etc/resolv.conf with a text editor, and add your nameserver that way.

When doing that, does it work properly?

-Eric

Sun, 04/12/2015 - 00:12
prince_mallow

It will work for a little while, but if I change it manually it will reflect the changes on the Hostname and DNS Client page, however click apply changes, or wait until the server reboots itself on it's schedule and the changes are lost

Thu, 09/03/2015 - 07:25
trafflux

Hey sorry this comment is way late but maybe it will help someone else searching. In CentOS you need to edit the /etc/resolve.conf file NOT the resolv.conf. No idea why this is the case but it reliably allows you to change hostnames. Also keep in mind you will likely need to specify your DNS server during this process as well.

Topic locked