View Full Version : [all variants] How to make changes stick to /etc/resolv.conf ...
grndslm
February 8th, 2009, 03:51 PM
How do I do it? resolv.conf keeps getting written over by NetworkManager I think, telling my desktop that the router is the dns server. How can I do it the "old fashioned way".
punx45
February 8th, 2009, 04:27 PM
How do I do it? resolv.conf keeps getting written over by NetworkManager I think, telling my desktop that the router is the dns server. How can I do it the "old fashioned way".
are you getting an IP through DHCP? it is probably overwriting the settings every time it leases an IP from the router.
also, is this giving you problems? i have my router set as my nameserver on my system and it works fine. it just uses the DNS settings in the router.
grndslm
February 8th, 2009, 07:21 PM
Yes, my router sends me the DNS server of my choice, but I want all of the Ubuntu builds I create in the future to look at only OpenDNS servers -- 208.67.222.222 && 208.67.220.220.
Is it that simple to set my resolv.conf file and have it stick?! Shouldn't it be very simple?!?
punx45
February 8th, 2009, 07:54 PM
you will probably have to give each system a static ip then.
yknivag
February 8th, 2009, 08:02 PM
Could you configure your router to forward DNS to the OpenDNS servers (as opposed to those supplied by your ISP)? Then DHCP would provide your router address for DNS which would in turn forward to OpenDNS...
ciscosurfer
February 8th, 2009, 08:05 PM
Go here: http://www.opendns.com/select_network_type.php?p=start
grndslm
February 8th, 2009, 08:30 PM
Go here: http://www.opendns.com/select_network_type.php?p=start
Muchos gracias, senor! I will definitely try those suggestions when i return to mi casa.
punx45
February 8th, 2009, 08:32 PM
yeah you can do that to. for some reason i was thinking that you wanted the ISP DNS on the router, and Open DNS on the Ubuntu machines... hah.:biggrin:
HermanAB
February 8th, 2009, 08:52 PM
Note that the resolvconf daemon can also overwrite the resolv.conf file. So, while you are at it, stop the resolvconf and avahi-daemon servers if they are running.
Cheers,
Herman
grndslm
February 8th, 2009, 09:32 PM
So, while you are at it, stop the resolvconf and avahi-daemon servers if they are running.
Care to explain what these 2 daemons do?? avahi doesn't have any other purpose?
grndslm
February 9th, 2009, 11:32 PM
Buuummp.
Iowan
February 10th, 2009, 12:48 PM
man pages can provide some information,
Wikipedia has descriptions, too.
http://en.wikipedia.org/wiki/Resolvconf
http://en.wikipedia.org/wiki/Avahi_(software)
http://www.noah.org/wiki/Resolv.conf
puppywhacker
February 10th, 2009, 12:57 PM
and to make the changes stick, you can probably get away with setting the file rights to read-only. Preventing anything to overwrite the file
sudo chmod a-x /etc/resolv.conf
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.