Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-30 Thread ken
On 10/29/2009 04:03 PM Dave wrote: On Thu, Oct 29, 2009 at 9:00 AM, Meenoo Shivdasani mee...@gmail.com mailto:mee...@gmail.com wrote: BOOTPROTO=bootp is triggering it. I'm confused. I just rebooted another machine with 'BOOTPROTO=bootp' in /etc/sysconfig/network-scripts/ifup-eth,

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-30 Thread Phil Savoie
ken wrote: On 10/29/2009 04:03 PM Dave wrote: On Thu, Oct 29, 2009 at 9:00 AM, Meenoo Shivdasani mee...@gmail.com mailto:mee...@gmail.com wrote: BOOTPROTO=bootp is triggering it. I'm confused. I just rebooted another machine with 'BOOTPROTO=bootp' in

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-29 Thread Dave
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: find /etc/sysconfig/ -type f -exec grep -iH 'peerdns=' {} \;

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-29 Thread Meenoo Shivdasani
/etc/sysconfig/network-scripts/ifup-eth:    BOOTPROTO=bootp So, it's not PEERDNS, not DHCP, not NetworkManager. Why is dhclient-script even being run? BOOTPROTO=bootp is triggering it. In /etc/sysconfig/network-scripts/ifup-eth: if [ ${BOOTPROTO} = bootp -o ${BOOTPROTO} = dhcp ]; then

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-29 Thread Dave
On Thu, Oct 29, 2009 at 9:00 AM, Meenoo Shivdasani mee...@gmail.com wrote: BOOTPROTO=bootp is triggering it. I'm confused. I just rebooted another machine with 'BOOTPROTO=bootp' in /etc/sysconfig/network-scripts/ifup-eth, it did not rewrite /etc/resolv.conf. Okay, my goof, the one with the

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-09 Thread Marcelo M. Garcia
Dave wrote: My machine has a static IP, with dhcp and IPv6 disabled. Every time I reboot, some process rewrites /etc/resolv.conf, including a comment about dhcpclient. The only package I have installed that shows up in rpm -qa|grep -i dhcp is dhcpv6-client-1.0.10-16.el5, and nothing in there

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-09 Thread Marcus Moeller
Hi, One option would be to comment out the make_resolv_conf()  function in /sbin/dhclient-script. btw. a more common way would be to create a /etc/dhclient-enter-hooks with the following content: make_resolv_conf(){ : } Best Regards Marcus

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-09 Thread Frank Thommen
Dave wrote: On Thu, Oct 8, 2009 at 11:44 AM, Craig White craigwh...@azapple.com wrote: On Thu, 2009-10-08 at 11:19 -1000, Dave wrote: [r...@lee1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 [snip] PEERDNS=yes - ^^^ change to PEERDNS=no What man page would tell me what this

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-09 Thread Barry Brimer
I haven't been following this thread very closely since my last post, but if you want to know who is doing what ... use auditctl. http://kbase.redhat.com/faq/docs/DOC-10108 Barry ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-09 Thread Dave
On Thu, Oct 8, 2009 at 2:20 PM, Ray Van Dolson ra...@bludgeon.org wrote: On Thu, Oct 08, 2009 at 01:32:39PM -1000, Dave wrote: Wow, there it is. I guess I could've found it by doing a careful search of the initscripts package, which contains/owns /etc/sysconfig/network-scripts/ifcfg-eth0,

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-09 Thread Dave
On Thu, Oct 8, 2009 at 11:40 PM, Marcelo M. Garcia marcelo.maia.gar...@googlemail.com wrote: Is network-manager enabled? No. Dave ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-09 Thread Dave
On Thu, Oct 8, 2009 at 2:54 PM, Joseph L. Casale jcas...@activenetwerx.com wrote: Just one of those things you kind of pick up as you go along and remember.  Tribal knowledge if you will. There's two pdf's and one command I use often :) The redhat 5.3 deployment and installation pdf's (or the

[CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
My machine has a static IP, with dhcp and IPv6 disabled. Every time I reboot, some process rewrites /etc/resolv.conf, including a comment about dhcpclient. The only package I have installed that shows up in rpm -qa|grep -i dhcp is dhcpv6-client-1.0.10-16.el5, and nothing in there is named

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread MHR
On Thu, Oct 8, 2009 at 10:41 AM, Dave tdbtdb+cen...@gmail.com wrote: My machine has a static IP, with dhcp and IPv6 disabled. Every time I reboot, some process rewrites /etc/resolv.conf, including a comment about dhcpclient. The only package I have installed that shows up in rpm -qa|grep -i

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Meenoo Shivdasani
On Thu, Oct 8, 2009 at 1:41 PM, Dave tdbtdb+cen...@gmail.com wrote: My machine has a static IP, with dhcp and IPv6 disabled. Every time I reboot, some process rewrites /etc/resolv.conf, including a comment about dhcpclient. The only package I have installed that shows up in rpm -qa|grep -i

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Sergey Smirnov
Maybe it overwritten by NetworkManager? On Thu, Oct 8, 2009 at 9:41 PM, Dave tdbtdb+cen...@gmail.comtdbtdb%2bcen...@gmail.com wrote: My machine has a static IP, with dhcp and IPv6 disabled. Every time I reboot, some process rewrites /etc/resolv.conf, including a comment about dhcpclient. The

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
On Thu, Oct 8, 2009 at 7:52 AM, Sergey Smirnov sergey.a.smir...@gmail.com wrote: Maybe it overwritten by NetworkManager? I almost wish. [root@ ~]# /etc/init.d/NetworkManager status NetworkManager is stopped [root@ ~]# chkconfig --list|grep Netw NetworkManager 0:off 1:off 2:off 3:off

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Joseph L. Casale
I almost wish. Add a PEERDNS=no to your ifcfg file. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Spiro Harvey
about dhcpclient. The only package I have installed that shows up in It's called dhclient, so searching for dhcp won't give you a hit on that. chkconfig for dhclient too, and see what that results. Also, look at /etc/sysconfig/network-scripts/ifcfg-eth0. It's possible to have addresses

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Clint Dilks
Dave wrote: On Thu, Oct 8, 2009 at 7:52 AM, Sergey Smirnov sergey.a.smir...@gmail.com wrote: Maybe it overwritten by NetworkManager? I almost wish. [root@ ~]# /etc/init.d/NetworkManager status NetworkManager is stopped [root@ ~]# chkconfig --list|grep Netw NetworkManager 0:off

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Florin Andrei
Meenoo Shivdasani wrote: One option would be to comment out the make_resolv_conf() function in /sbin/dhclient-script. That's the last-ditch solution. Never use it, unless everything else fails. -- Florin Andrei http://florin.myip.org/ ___

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Florin Andrei
Dave wrote: My machine has a static IP, with dhcp and IPv6 disabled. Every time I reboot, some process rewrites /etc/resolv.conf, including a comment about dhcpclient. The only package I have installed that shows up in What happens when you do this: grep BOOTPROTO

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Florin Andrei
Clint Dilks wrote: Try adding PEERDNS=no to /etc/sysconfig/network :) aw, man :) This is not fixing the leaking faucet. It's hammering the water pipe shut instead. -- Florin Andrei http://florin.myip.org/ ___ CentOS mailing list

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Florin Andrei
Dave wrote: My machine has a static IP, with dhcp and IPv6 disabled. Every time I reboot, some process rewrites /etc/resolv.conf, including a comment about dhcpclient. Is that dhcpclient, or dhclient? The only package I have installed that shows up in rpm -qa|grep -i dhcp is

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Joseph L. Casale
aw, man :) This is not fixing the leaking faucet. It's hammering the water pipe shut instead. Huh, what r u talking about? This is the right way to do this. Check the deployment docs on network scripts. ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
On Thu, Oct 8, 2009 at 9:49 AM, Spiro Harvey sp...@knossos.net.nz wrote: chkconfig for dhclient too, and see what that results. [root@ ~]# chkconfig --list|grep -e dh -e clie [root@ ~]# Also, look at /etc/sysconfig/network-scripts/ifcfg-eth0. [r...@lee1 ~]# cat

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
On Thu, Oct 8, 2009 at 10:10 AM, Florin Andrei flo...@andrei.myip.org wrote: What happens when you do this: grep BOOTPROTO /etc/sysconfig/network-scripts/ifcfg-* grep BOOTPROTO /etc/sysconfig/network-scripts/ifcfg-* /etc/sysconfig/network-scripts/ifcfg-eth0:BOOTPROTO=none Dave

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Meenoo Shivdasani
You guessed right. But the question remains, what software is writing the file? /etc/init.d/network calls /etc/sysconfig/network-scripts/ifup which calls /sbin/dhclient which calls /sbin/dhclient-script which overwrites your resolv.conf with the info it gets from the DHCP server on the

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
On Thu, Oct 8, 2009 at 11:27 AM, Meenoo Shivdasani mee...@gmail.com wrote: /etc/init.d/network calls /etc/sysconfig/network-scripts/ifup which calls /sbin/dhclient which calls /sbin/dhclient-script which overwrites your resolv.conf with the info it gets from the DHCP server on the network.

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Florin Andrei
Joseph L. Casale wrote: aw, man :) This is not fixing the leaking faucet. It's hammering the water pipe shut instead. Huh, what r u talking about? This is the right way to do this. Check the deployment docs on network scripts. Yes, I know the docs. What I was saying is - it will not help

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Craig White
On Thu, 2009-10-08 at 11:19 -1000, Dave wrote: On Thu, Oct 8, 2009 at 9:49 AM, Spiro Harvey sp...@knossos.net.nz wrote: chkconfig for dhclient too, and see what that results. [root@ ~]# chkconfig --list|grep -e dh -e clie [root@ ~]# Also, look at

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Joseph L. Casale
Yes, I know the docs. What I was saying is - it will not help finding the cause, which is what the OP requested. It will just make the problem go away. Uhm, am I missing something? It *is* the cause? Its designed to do just what it's doing, and here's a real shocker, it's doing it:)

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
On Thu, Oct 8, 2009 at 11:44 AM, Craig White craigwh...@azapple.com wrote: On Thu, 2009-10-08 at 11:19 -1000, Dave wrote: [r...@lee1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 [snip] PEERDNS=yes - ^^^ change to PEERDNS=no What man page would tell me what this means? How

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
On Thu, Oct 8, 2009 at 10:29 AM, Florin Andrei flo...@andrei.myip.org wrote: What is the output of these commands? rpm -qa | grep dhc # to see what's actually installed as a package rpm -qa | grep dhc dhcpv6-client-1.0.14-1.fc9.x86_64 libdhcp4client-4.0.0-22.fc9.x86_64

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Florin Andrei
Dave wrote: [r...@lee1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express DEVICE=eth0 BOOTPROTO=none HWADDR=00:18:8b:0f:ad:c2 IPADDR=1[snip]0 ONBOOT=yes DHCP_HOSTNAME=[snip] DNS1=1[snip]0 DNS2=1[snip].2

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Barry Brimer
Quoting Dave tdbtdb+cen...@gmail.com: On Thu, Oct 8, 2009 at 11:44 AM, Craig White craigwh...@azapple.com wrote: On Thu, 2009-10-08 at 11:19 -1000, Dave wrote: [r...@lee1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 [snip] PEERDNS=yes - ^^^ change to PEERDNS=no What

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Meenoo Shivdasani
On Thu, Oct 8, 2009 at 5:39 PM, Dave tdbtdb+cen...@gmail.com wrote: On Thu, Oct 8, 2009 at 11:27 AM, Meenoo Shivdasani mee...@gmail.com wrote: /etc/init.d/network calls /etc/sysconfig/network-scripts/ifup which calls /sbin/dhclient which calls /sbin/dhclient-script which overwrites your

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Florin Andrei
Joseph L. Casale wrote: Yes, I know the docs. What I was saying is - it will not help finding the cause, which is what the OP requested. It will just make the problem go away. Uhm, am I missing something? It *is* the cause? Its designed to do just what it's doing, and here's a real shocker,

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
On Thu, Oct 8, 2009 at 11:50 AM, Dave tdbtdb+cen...@gmail.com wrote: On Thu, Oct 8, 2009 at 10:29 AM, Florin Andrei flo...@andrei.myip.org wrote: What is the output of these commands? rpm -qa | grep dhc # to see what's actually installed as a package  rpm -qa | grep dhc

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Robert Heller
At Thu, 8 Oct 2009 07:41:33 -1000 CentOS mailing list centos@centos.org wrote: My machine has a static IP, with dhcp and IPv6 disabled. Every time I reboot, some process rewrites /etc/resolv.conf, including a comment about dhcpclient. The only package I have installed that shows up in rpm

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Robert Heller
At Thu, 08 Oct 2009 14:54:36 -0700 CentOS mailing list centos@centos.org wrote: Dave wrote: [r...@lee1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 # Broadcom Corporation NetXtreme BCM5751 Gigabit Ethernet PCI Express DEVICE=eth0 BOOTPROTO=none HWADDR=00:18:8b:0f:ad:c2

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Robert Heller
At Thu, 8 Oct 2009 11:19:18 -1000 CentOS mailing list centos@centos.org wrote: On Thu, Oct 8, 2009 at 9:49 AM, Spiro Harvey sp...@knossos.net.nz wrote: chkconfig for dhclient too, and see what that results. [root@ ~]# chkconfig --list|grep -e dh -e clie [root@ ~]# Also, look at

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
On Thu, Oct 8, 2009 at 1:04 PM, Robert Heller hel...@deepsoft.com wrote: Is NetworkManager running?  If so, stop it: /etc/init.d/NetworkManager status NetworkManager is stopped mahalo, Dave ___ CentOS mailing list CentOS@centos.org

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
On Thu, Oct 8, 2009 at 11:57 AM, Barry Brimer li...@brimer.org wrote: Quoting Dave tdbtdb+cen...@gmail.com: On Thu, Oct 8, 2009 at 11:44 AM, Craig White craigwh...@azapple.com wrote: On Thu, 2009-10-08 at 11:19 -1000, Dave wrote: [r...@lee1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
On Thu, Oct 8, 2009 at 1:04 PM, Robert Heller hel...@deepsoft.com wrote: At Thu, 08 Oct 2009 14:54:36 -0700 CentOS mailing list centos@centos.org wrote: Dave wrote: BOOTPROTO=none Shouldn't that be: BOOTPROTO=static My options (according to

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Dave
On Thu, Oct 8, 2009 at 11:57 AM, Meenoo Shivdasani mee...@gmail.com wrote: Are there any interfaces that have BOOTPROTO=dhcp?  Perhaps one that's not connected to the network? grep BOOTPROTO /etc/sysconfig/network-scripts/ifcfg* grep BOOTPROTO /etc/sysconfig/network-scripts/ifcfg*

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Ray Van Dolson
On Thu, Oct 08, 2009 at 01:32:39PM -1000, Dave wrote: On Thu, Oct 8, 2009 at 11:57 AM, Barry Brimer li...@brimer.org wrote: Quoting Dave tdbtdb+cen...@gmail.com: On Thu, Oct 8, 2009 at 11:44 AM, Craig White craigwh...@azapple.com wrote: On Thu, 2009-10-08 at 11:19 -1000, Dave wrote:

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Joseph L. Casale
Just one of those things you kind of pick up as you go along and remember. Tribal knowledge if you will. There's two pdf's and one command I use often :) The redhat 5.3 deployment and installation pdf's (or the online versions) and: # find /usr/share/doc/ -exec grep PEERDNS '{}' \; -print

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread William L. Maltby
On Fri, 2009-10-09 at 00:54 +, Joseph L. Casale wrote: snip Also: man -K PEERDNS But that's generally a slow and last ditch effort even after google:) It also never helped with this string but its useful to know. And don't forget to run makewhatis occasionally (if not automatically

Re: [CentOS] resolv.conf rewritten every reboot. How to figure out who and why?

2009-10-08 Thread Rob Townley
On Thu, Oct 8, 2009 at 4:39 PM, Dave tdbtdb+cen...@gmail.com wrote: On Thu, Oct 8, 2009 at 11:27 AM, Meenoo Shivdasani mee...@gmail.com wrote: /etc/init.d/network calls /etc/sysconfig/network-scripts/ifup which calls /sbin/dhclient which calls /sbin/dhclient-script which overwrites your