Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-31-2006, 11:32 PM   #1
Registered: Jul 2003
Location: Fort Worth, Texas
Distribution: Mepis Linux 2004
Posts: 547

Rep: Reputation: 30
Resolv.conf updated every time DHCP leases?

Each time I get a new DHCP lease my resolv.conf gets rewritten with new nameservers. I wonder if it's possible to stop this behavior. It rewrites resolv.conf with my routers IP, and my router doesn't ever seem to resolv anything (pages never load, or extremely slowly)

Anyway to lock resolv.conf to the settings I define and not have DHCP always overwrite the file with junk IP's?

FYI: Running Ubuntu Breezy
Old 08-01-2006, 01:08 AM   #2
Senior Member
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
this thread might help you out...
Old 08-01-2006, 04:32 PM   #3
LQ Newbie
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
Originally Posted by detpenguin
this thread might help you out...
I ran into this problem with Mandrake several years ago and found the same solution. The problem is that this is a really lame way to solve the problem. It makes the file resolve.conf unwritable even by root, and it does it by going outside of normal Unix/Linux. The chattr command only works with ext2/3 file systems. It doesn't work if your running AFS or anything else.

I think this is a defect (not a feature :>)) in many (most) Linux distros and needs to be fixed. It should be easy to configure the network so that you can use either the DHCP DNS setting or a static DNS.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCP client overwriting resolv.conf... how to stop it? gauge73 Linux - Networking 6 05-04-2005 11:51 AM
DHCP update resolv.conf forrestevans Linux - Networking 0 11-03-2004 09:12 PM
dhcp and resolv.conf naflan Linux - Networking 2 10-04-2004 07:48 PM
/etc/resolv.conf and dhcp client win32sux Linux - Networking 2 07-29-2004 08:19 AM
resolv.conf is not updated automatically metalyric Linux - Networking 9 06-04-2004 05:51 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration