top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Who deletes/edits my resolv.com in CentOS?

+4 votes
390 views

Every now and again the nameservers in /etc/resolv.conf on my CentOS-6.5 server are commented out. I used to think this was the fault of NetworkManager, but I've stopped running that on the server (using the network service instead) and the nameserver removal still occurs.

Any guesses?

posted Jan 9, 2014 by Ahmed Patel

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
The DHCP client does similar things.

1 Answer

+2 votes

When using DHCP add the line

PEERDNS=no

in /etc/sysconfig/network-scripts/ifcfg-???, it keeps your resolv.conf as it is.

answer Jan 9, 2014 by Kiran Kumar
Similar Questions
+1 vote

I need to change a domain name example.com to www.example.com for example when i enter in the URL like example.com it should automatically redirects to www.example.com

For example enter the URL in browser algoosdigital.com it automatically redirects to www.algoosdigital.com

+1 vote

From last one week my skype has stopped working. I can startup but I can't log on. Does this have something to do with the recent update to LibC?

+1 vote

I'm trying to set up a caching name server on a server on my home network. All the instructions I've been able to find online refer to the caching-nameserver RPM, but that doesn't seem to be available in Fedora 20.

So my questions are:
* What happened to caching-nameserver?
* What (if anything) has replaced it?
* Are there any good, easy *current* instructions for doing this?

It seems like it should be a fairly cookbook task, so I shouldn't have to learn all about bind to accomplish it.

...