New DNS entry will not take effect

Tommy Trussell tommy.trussell at gmail.com
Mon Jul 28 14:34:13 UTC 2008


On Mon, Jul 28, 2008 at 9:21 AM, Rashkae <ubuntu at tigershaunt.com> wrote:
>> Wade Smart wrote:
>>> 20080728 0744 GMT-6
>>>
>>> Yesterday I changed my dns to opendns. I opened the network gui and put in my
>>> opendns addr's but when I went back later, they were not there.
>>>
>>> Then I found a post on this:
>>> sudo gedit /etc/resolv.conf
>>>
>>> and tried that and still, it did not take. Found another post saying:
>>> sudo gedit /etc/dhcp3/dhclient.conf
>>>
>>> and add:
>>> prepend domain-name-servers 208.67.222.222,208.67.220.220;
>>>
>>> which I did and still it did not take.
>>>
>>> Im not sure what is up here but surely I dont have to use my ISP's dns.
>>>
>>> Wade
...
>
> Your prepend domain-name-servers was the right way to go.  However, this
> will only take effect when your DHCP client requests an IP address from
> the ISP, so for these settings to take effect, you need to disable your
> network interface then re-enable it.

go back and look over the complete instructions at opendns.org --

https://www.opendns.com/start?device=ubuntu

The ifdown and ifup commands in the last part of their instructions
disable and re-enable the network interface (as Rashkae suggested),
which of course you can do using GUI tools OR from the command line as
the opendns people suggested. The new dns settings should take effect
as soon as the network interface comes back up.




More information about the ubuntu-users mailing list