The consensus of the list seemed to be that I should change the PEERDNS variable. It seems not to be working. The machine rebooted yesterday, /etc/resolv.conf got rewritten again. And yet:<br><br> find /etc/sysconfig/ -type f -exec grep -iH 'peerdns=' {} \;<br>
/etc/sysconfig/network-scripts/ifcfg-eth0:PEERDNS=no <br>/etc/sysconfig/network-scripts/ifcfg-eth0.old:PEERDNS=yes<br>/etc/sysconfig/networking/profiles/default/ifcfg-eth0:PEERDNS=no <br>/etc/sysconfig/networking/devices/ifcfg-eth0:PEERDNS=no <br>
# chkconfig --list|grep Net<br>NetworkManager  0:off   1:off   2:off   3:off   4:off   5:off   6:off<br># /etc/init.d/NetworkManager status<br>NetworkManager is stopped<br># find /etc/sysconfig/ -type f -exec grep -iH 'bootproto=' {} \;<br>
/etc/sysconfig/network-scripts/ifcfg-eth0:BOOTPROTO=none<br>/etc/sysconfig/network-scripts/ifcfg-eth0.old:BOOTPROTO=none<br>/etc/sysconfig/network-scripts/ifup-eth:    BOOTPROTO=bootp<br>/etc/sysconfig/networking/profiles/default/ifcfg-eth0:BOOTPROTO=none<br>
/etc/sysconfig/networking/devices/ifcfg-eth0:BOOTPROTO=none<br># cat /etc/resolv.conf<br>; generated by /sbin/dhclient-script<br>search <a href="http://soest.hawaii.edu">soest.hawaii.edu</a><br>nameserver 1...<br>nameserver 1...<br>
<br><br>So, it's not PEERDNS, not DHCP, not NetworkManager. Why is dhclient-script even being run?<br><br>Maybe I should disable selinux altogether, instead of just making it permissive? I think I'll try that.<br>
<br># grep resol  /sbin/dhclient-script<br>make_resolv_conf() {<br>        save_previous /etc/resolv.conf<br>        change_resolv_conf $rscf<br>            for resolvfile in /etc/resolv.conf* ; do<br>                /sbin/restorecon $resolvfile >/dev/null 2>&1<br>
    make_resolv_conf<br>        if [ -f /etc/resolv.conf.predhclient.$interface ]; then<br>            change_resolv_conf /etc/resolv.conf.predhclient.$interface<br>            rm -f /etc/resolv.conf.predhclient.$interface<br>
[root@lee1 ~]# getenforce<br>Permissive<br><br>How badly would things blow up if I did this?<br><br>chmod a-w /etc/resolv.conf<br><br>mahalo,<br>Dave<br><br><br><div class="gmail_quote">On Thu, Oct 8, 2009 at 7:41 AM, Dave <span dir="ltr"><<a href="mailto:tdbtdb%2Bcentos@gmail.com">tdbtdb+centos@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">My machine has a static IP, with dhcp and IPv6 disabled. Every time I<br>
reboot, some process rewrites /etc/resolv.conf, including a comment<br>
about dhcpclient. The only package I have installed that shows up in<br>
"rpm -qa|grep -i dhcp" is dhcpv6-client-1.0.10-16.el5, and nothing in<br>
there is named dhcpclient.<br>
<br>
I'd like to figure out what software is rewriting this file and why.<br>
man 5 resolv.conf  and man resolver are unhelpful in this case. rpm<br>
reports /etc/resolv.conf is not owned by any package.<br>
<br>
At this point, I am as (or more) interested in pointers regarding how<br>
to find the answer as I am in the actual answer. Please teach me to<br>
fish.<br>
<br>
mahalo,<br>
<font color="#888888">Dave<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>———————————————————————-<br>Q: Why should this email be 5 sentences or less?<br>A: <a href="http://five.sentenc.es">http://five.sentenc.es</a><br>IPRC-help FAQ: <a href="https://wailua/wiki/index.php/Faq">https://wailua/wiki/index.php/Faq</a><br>