LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-23-2011, 08:00 AM   #1
z99
Member
 
Registered: Aug 2009
Location: Iran-Sari
Distribution: CentOS,Fedora,Slitaz
Posts: 131

Rep: Reputation: 20
replace the existing dns servers with OPEN DNS servers in fedora 13


hi,
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
http://jbowes.wordpress.com/?s=dns
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
Code:
prepend domain-name-servers 127.0.0.1;
with
Code:
prepend domain-name-servers 208.67.222.222,208.67.220.220;
this is how my dhclient.conf looks like:

Code:
send host-name "andare.fugue.com";
send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
send dhcp-lease-time 3600;
supersede domain-search "fugue.com home.vix.com";
prepend domain-name-servers 208.67.222.222,208.67.220.220;
request subnet-mask, broadcast-address, time-offset, routers,
	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";
media "-link0 -link1 -link2", "link0 link1";
reject 192.33.137.209;

alias {
  interface "ep0";
  fixed-address 192.5.5.213;
  option subnet-mask 255.255.255.255;
}

lease {
  interface "ep0";
  fixed-address 192.33.137.200;
  medium "link0 link1";
  option host-name "andare.swiftmedia.com";
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.33.137.255;
  option routers 192.33.137.250;
  option domain-name-servers 127.0.0.1;
  renew 2 2000/1/12 00:00:01;
  rebind 2 2000/1/12 00:00:01;
  expire 2 2000/1/12 00:00:01;
}
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
 
Old 03-23-2011, 08:39 AM   #2
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 194

Rep: Reputation: 50
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
nameserver 192.168.1.2
nameserver 192.168.1.3
 
Old 03-23-2011, 09:10 AM   #3
z99
Member
 
Registered: Aug 2009
Location: Iran-Sari
Distribution: CentOS,Fedora,Slitaz
Posts: 131

Original Poster
Rep: Reputation: 20
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) ?
thanks
 
Old 03-23-2011, 09:29 AM   #4
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 194

Rep: Reputation: 50
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS Questions Multiple DNS Servers with single domain linuxcrazyguy Linux - Networking 1 01-27-2009 12:21 PM
How to set DNS servers? How to stop auto change of DNS servers? newtovanilla Linux - Newbie 1 10-29-2008 09:19 PM
Specifying DNS servers in Fedora? sKiBa Linux - Newbie 4 11-12-2006 01:28 PM
TEMP_FAILURE: DNS Error: Timeout while contacting DNS servers when receiving emails tonysutherland Linux - Networking 2 02-10-2006 09:04 AM


All times are GMT -5. The time now is 01:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration