LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-30-2005, 11:50 AM   #1
billbob
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
resolv.conf dns issues


In my resolv.conf file I have the entry 192.168.8.1 and then the proper dns address under it as the next entry. I have deleted the 192.168.8.1 and left only that one under it and it works fine however it only takes about a half an hour and the bad entry is back. I have denied permissions on this file and it still somehow gets edited. How can I make the entries I want and delete the rest and actually have them gone for good.

in other words I only want 1 dns address the correct one if I add 2 correct ones then one gets deleted and the 192.168.8.1 gets added in its place. All I want to do is make my resolv.conf file right and have it stay that way.
 
Old 09-30-2005, 12:02 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
however it only takes about a half an hour and the bad entry is back.
You probably have a setting in place to update nameservers via DHCP. Not sure which distro you're using, but hopefully that setting will be transparent enough for you to find and disable.

For example: In SuSE, there is a YaST setting that allows you to disable nameserver updating via dhcp, and you can then specify the nameservers manually.
 
Old 09-30-2005, 12:07 PM   #3
billbob
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I am using mandrake 10.1
 
Old 09-30-2005, 12:20 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Well, unfortunately I don't know mandrake.

Here's a CLI alternative in case your network scripts look anything like SuSE's.

First back up the dhcp file in case you mangle it:
Code:
cp /etc/sysconfig/network/dhcp /etc/sysconfig/network/dhcp.backup
Next find the line in /etc/sysconfig/network/dhcp that looks like
Code:
DHCLIENT_MODIFY_RESOLV_CONF="yes"
and change it to
Code:
DHCLIENT_MODIFY_RESOLV_CONF="no"
Finally, restart your network service. Should be something like
Code:
/etc/init.d/network restart
After this I think you should be able to happily edit your /etc/resolv.conf without it getting overwritten.

Good luck.
 
  


Reply



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
Fedora DNS resolv.conf issue waelaltaqi Linux - Networking 16 07-05-2006 03:23 AM
dns server and /etc/resolv.conf freeosfreesoul Linux - Laptop and Netbook 2 09-02-2005 06:45 PM
configure jay's firewall to use dns in /etc/resolv.conf TheOneAndOnlySM Linux - Software 0 03-29-2004 07:27 PM
DNS & resolv.conf robeb Linux - Networking 1 06-25-2002 09:15 PM
Resolv.conf issues when switching from eth to ppp Supp0rtLinux Linux - Networking 2 12-30-2001 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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