slightly confused, where in the file do I add this? Do I add "prepend domain-name-servers <a href="http://208.67.222.222">208.67.222.222</a>,<a href="http://208.67.220.220">208.67.220.220</a>" in its entirety?<br>
<br>Thanks Dan<br><br><div><span class="gmail_quote">On 7/18/07, <b class="gmail_sendername">Avi Schwartz</b> <<a href="mailto:ubuntu-users874@cfftechnologies.com">ubuntu-users874@cfftechnologies.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Peter Garrett wrote:<br>><br>>>> Dan Ziolkowski wrote:<br>>>><br>>>>
<br>>>>> I did more work on this, first it is not related to an old version of<br>>>>> Firefox, as the same problem occurs in Galean and Epiphany browsers.<br>>>>><br>>>>> It seems to be a DNS setting issue. When you open the "Network
<br>>>>><br>>>> settings",<br>>>><br>>>>> the DNS is shown as <a href="http://192.168.0.1">192.168.0.1</a>,<br>>>>><br>><br>> [ various snips made awkward by your top posting]
<br>><br>> On Tue, 17 Jul 2007 18:15:45 -0400<br>> "Dan Ziolkowski" <<a href="mailto:dan.ziolkowski@gmail.com">dan.ziolkowski@gmail.com</a>> wrote:<br>><br>><br>>> I removed the phrase "domain-name-servers" from the
dhclient.conf file. I<br>>> still lose the setting after reboot. Maybe the change needs to be made to<br>>> dhclient-script file?<br>>><br>><br>> I suggest trying the following:<br>><br>> 1) Make sure you have a valid /etc/resolv.conf ( you say you are using
<br>> Open DNS , which should work anywhere, so use those IPs in resolv.conf)<br>><br>> 2) Make a script named dhclient-enter-hooks and place it in /etc/dhcp3 .<br>> Mine looks like this ( between the ######## lines):
<br>><br>> ##############<br>> #!/bin/bash<br>><br>> # Stop overwriting /etc/resolv.conf !<br>><br>> function make_resolv_conf {<br>> echo "Doing nothing to resolv.conf"<br>> }<br>><br>> ###############
<br>><br>> That's all. Make it executable<br>><br>> sudo chmod +x /etc/dhcp3/dhclient-enter-hooks<br>><br>> You now have a script that does "nothing", but your /etc/resolv.conf will<br>> keep on pointing at your Open DNS servers.
<br>><br>> Alternatively, you might have success by simply doing<br>><br>> sudo chattr +i /etc/resolv.conf<br>><br>> which should stop dhclient clobbering your settings by<br>> replacing /etc/resolv.conf on each lease renewal.
<br>><br>> You can reverse that with " sudo chattr -i /etc/resolv.conf "<br>><br>> See man 1 chattr :-)<br>><br>> (Credit for the "do nothing" script goes to someone on the Web whose name I
<br>> can't remember, sorry )<br>><br>> Pete<br>Another option is to add to dhclient.conf:<br><br>prepend domain-name-servers <a href="http://208.67.222.222">208.67.222.222</a>,<a href="http://208.67.220.220">
208.67.220.220</a>;<br><br>Which will put your preferred DNS at the top of the list.<br><br>Avi<br><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br></blockquote></div><br>