Re: Static configuration: prevent /etc/resolv.conf from being overwritten on first reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Nicolas Kovacs <info@xxxxxxxxxxxxx> wrote:
> 
> Q: how can I prevent /etc/resolv.conf from being overwritten on the initial
> reboot? I vaguely remember having to kill some process before editing it, but
> unfortunately I don't remember which one.

One way to do this is to create the file /etc/dhcp/dhclient-enter-hooks that contains:

 make_resolv_conf(){
        :
 }

Or, add the line 'PEERDNS=no' to the matching /etc/sysconfig/network-scripts/ifcfg-XXXX file

James Pearson
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux