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 > > wrote: >> >> >> BOOTPROTO=bootp is triggering it. >> >> >> I'm confused. I just rebooted another machine with 'BOOTPROTO=bootp' in >> /etc/sysconfig/network-scripts

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 > 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

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 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 problem is act

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" ];

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=' {} \; /etc/sysconfig/network-scripts/ifcfg-eth0:PEERD

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 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 online versions)

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 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:20 PM, Ray Van Dolson 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, which was the on

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. Barry ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailm

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 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

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 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 >

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 wrote: > On Thu, Oct 8, 2009 at 11:27 AM, Meenoo Shivdasani 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

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: > > 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 d

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 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 wrote: > > Quoting Dave : > >> On Thu, Oct 8, 2009 at 11:44 AM, Craig White > >> wrote: > >> > On Thu, 2009-10-08 at 11:19 -1000, Dave wrote: > >> >> [r...@lee1 ~]# cat /etc/sysconfig/network-sc

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 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* /etc/sysconfig/network-

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 wrote: > At Thu, 08 Oct 2009 14:54:36 -0700 CentOS mailing list > wrote: >> Dave wrote: >> BOOTPROTO=none > > Shouldn't that be: > > BOOTPROTO=static My options (according to /usr/share/doc/initscripts-8.76.4/sysconfig.txt) are: BOOTPROTO=none|

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 wrote: > Quoting Dave : >> On Thu, Oct 8, 2009 at 11:44 AM, Craig White wrote: >> > On Thu, 2009-10-08 at 11:19 -1000, Dave wrote: >> >> [r...@lee1 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 >> [snip] >> >> PEERDNS=yes >> > - ^^^ >> > c

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 wrote: > Is NetworkManager running?  If so, stop it: > /etc/init.d/NetworkManager status NetworkManager is stopped mahalo, Dave ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/list

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 wrote: > > On Thu, Oct 8, 2009 at 9:49 AM, Spiro Harvey 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-sc

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 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 > > IPADD

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 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 d

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 wrote: > On Thu, Oct 8, 2009 at 10:29 AM, Florin Andrei 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.

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

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 wrote: > On Thu, Oct 8, 2009 at 11:27 AM, Meenoo Shivdasani 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

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

2009-10-08 Thread Barry Brimer
Quoting Dave : > On Thu, Oct 8, 2009 at 11:44 AM, Craig White 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 thi

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 > NM

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 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 libdhcp6client-1.0.14-1.fc9.x86_64 libdhc

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 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 should I have known t

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 Craig White
On Thu, 2009-10-08 at 11:19 -1000, Dave wrote: > On Thu, Oct 8, 2009 at 9:49 AM, Spiro Harvey 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. >

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

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 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. How would I fi

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 networ

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 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 Dave
On Thu, Oct 8, 2009 at 9:49 AM, Spiro Harvey 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 /etc/sysconfig/network-scripts/ifcfg-eth0 # B

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 http

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 dhcpv6-cl

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 CentOS@centos.

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 /etc/sysconfig/network-scr

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/ ___ Cen

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 > 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:

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 "s

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 Dave
On Thu, Oct 8, 2009 at 7:52 AM, Sergey Smirnov 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 4:off 5:off 6:off __

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 > 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

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 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

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 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-clien

[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 dhcpcli