Preventing resolv.conf from being recreated

Ed Greshko Ed.Greshko at greshko.com
Tue Jan 15 06:18:18 UTC 2013


On 01/15/2013 02:11 PM, Alex wrote:
> Hi,
>
> I have removed NetworkManager from my system, disabled it using
> systemctl, and enabled standard 'network', yet every time I reboot,
> /etc/resolv.conf is somehow recreated with information from a dhcp
> server on the network. I've also removed any package pertaining to
> dhcp, including dhcpclient.
>
> How is this file being recreated?
>
> # Generated by NetworkManager
> search inside.mynetwork.com mynetwork.com
> nameserver 68.XXX.YYY.44
>
> So frustrating.
>

Add

PEERDNS=no

into your ifcfg-XXXX   file in /etc/sysconfig/network-scripts

I assume you already have DNS1=, DNS2= entries....


-- 
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. -- Rick Cook, The Wizardry Compiled


More information about the users mailing list