Jump to content

/etc/resolv.conf changing [solved]


javaguy
 Share

Recommended Posts

I'm using Mandrake 10.1, and my /etc/resolv.conf seems to spontaneously change, adding a search line at the beginning that makes web browsing really slow. I created a cron job to remove the offending line once per hour (it seem to reapear a couple times a day), but that's a silly solution. What exactly is changing my resolv.conf, and how do I stop it from putting in the search line?

 

Thanks!

Sam

Link to comment
Share on other sites

Another method (I prefer this because I have multiple network connections, some needing to update resolv.conf and some not)

 

You can put this directive in /etc/sysconfig/network-scripts/ifcfg-foo (foo=name of your interface, eg 'eth0' for Ethernet connection)

 

PEERDNS=no

 

This stops resolv.conf being overwritten by that connection.

Link to comment
Share on other sites

  • 1 month later...

I've read the /sbin/dhclient-script file, and in theory, Havin_it you're right it should be enough to put PEERDNS=no in the config file.

 

But guess what? I've done as much, and still on reboot the /etc/resolv.conf file is reset to its old non-working content!

This evening, I'll see if I have more luck with arctic's suggestion to use pump as a dhcp client...

 

Yves.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...