DNS on diap up problems

They have: 3 posts

Joined: Feb 2001

I'm running redhat 6.2 with a dial up account (static ip) and i've noticed that when my isp bouces my connection after 360 minutes and ppp0 reestablishes the connection my /etc/resolv.conf file changes back to my isp ip#, i have them down as the secondary...
resolv.conf file...
domain getby.com
12.7.223.212 (this changes to 199.104.81.26)
199.104.81.3

i have /etc/hosts as
dns

i tried
dns, hosts and hosts, dns

nothing works how do i stop my resolv.conf file from changing??? any ideas please!!!!
terry

They have: 122 posts

Joined: Jun 2000

What's probably happening is the ppp daemon is resetting resolv.conf to what your ISP wants it to be, try setting the file immutable so that nothign can change it (chattr +i /etc/resolv.conf as root).

Rob Radez
OSInvestor.com

They have: 3 posts

Joined: Feb 2001

Hey thanks!!! i did and it works, i went all through my my books (linux desk reference, linux administration and a sunservice administration esstentials) and couldn't find any reference to the immutable command or chattr, i did a couple of searches on it and man that can be a powerful tool!!! thanks again!!!!

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.