-   Linux - Newbie (
-   -   replace the existing dns servers with OPEN DNS servers in fedora 13 (

z99 03-23-2011 08:00 AM

replace the existing dns servers with OPEN DNS servers in fedora 13
i heard that open dns is faster,so,i try to replace my dns with open dns servers,
i use my mobile phone to connect to the internet,
that's what i've done so far according to this site
Copy /usr/share/doc/dhclient-$VERSION/dhclient.conf.sample to /etc/dhclient.conf
and then edit the dhclient.conf file from /etc and replace this line

prepend domain-name-servers;

prepend domain-name-servers,;
this is how my dhclient.conf looks like:


send host-name "";
send dhcp-lease-time 3600;
supersede domain-search "";
prepend domain-name-servers,;
        domain-search, domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
timeout 60;
retry 60;
reboot 10;
select-timeout 5;
initial-interval 2;
script "/etc/dhclient-script";

alias {
  interface "ep0";
  option subnet-mask;

lease {
  interface "ep0";
  medium "link0 link1";
  option host-name "";
  option subnet-mask;
  option broadcast-address;
  option routers;
  option domain-name-servers;

by right clicking on network manager and click on connection information i still see the old dns servers ip,
i think these settings aren't applied on interface ppp0,
how can i do that,
thanks in advance

savona 03-23-2011 08:39 AM

I am not sure if I understand your question correctly but I will try...

If you want to use opendns for your system to resolve dns names put them in /etc/resolv.conf

here is an example of resolv.conf:

# cat /etc/resolv.conf
# replace IP address below with opendns

z99 03-23-2011 09:10 AM

thanks savona,
i edit the resolv.conf and it works,i mean,the site can check if we are using Opendns or not,and I've got: Success! You're now using OpenDNS,
but they said i have to edit dhclient.conf,but it was not needed,it could be done just by editing resolv.conf,
why should we use dhclient.conf when it could be done with resolv.conf?
and what is it for (dhclient.conf) ?

savona 03-23-2011 09:29 AM

dhclient.conf is the client app that gets an ip address from your dhcp server.

Now here is a possible problem. Are these machines using DHCP?

If so the DNS servers might change next time you renew your IP address, because DNS servers are usually handed out by the DHCP server.

If this is the case you have a few options.

1) Change your DNS server to give out opendns DNS servers.

2) Hard code your IP address in your linux machines.

3) Turn off network manager so it doesnt overwrite your /etc/resolv.conf file.
