Difference between revisions of "OpenDNS"

From ArchWiki
Jump to: navigation, search
(Change category to Domain Name System.)
(merged into resolv.conf, redirecting)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Domain Name System]]
+
#REDIRECT [[resolv.conf]]
{{merge|resolv.conf|3=Talk:OpenDNS#resolv.conf}}
 
[http://www.opendns.com OpenDNS] is an alternative [http://en.wikipedia.org/wiki/Domain_Name_System DNS] service.
 
 
 
==DNS in Linux==
 
Your ISP (usually) provides working DNS servers, and a router may also add an extra DNS server in case you have your own cache server. Switching between DNS servers does not represent a problem for Windows users, because if a DNS server is slow or does not work it will immediately switch to a better one.  However, Linux usually takes longer to timeout, which could be the reason why you are getting a delay.
 
 
 
Use dig (provided by package {{Pkg|dnsutils}}) before any changes, repeat after making the adjustments in the section [[OpenDNS#Using OpenDNS|below]] and compare the query time(s):
 
$ dig www5.yahoo.com
 
 
 
You can also specify a nameserver:
 
$ dig @ip.of.name.server www5.yahoo.com
 
 
 
{{Warning| The OpenDNS servers ALWAYS respond with an IP address for any query, even if the domain or DNS record doesn't exist. This can cause problems when debugging network issues.}}
 
 
 
== Using OpenDNS ==
 
Edit {{ic|/etc/resolv.conf}} and add the OpenDNS {{Ic|nameservers}} to the top of the file so they are used first, optionally removing already listed servers in order to only use OpenDNS:
 
# OpenDNS nameservers
 
nameserver 208.67.222.222
 
nameserver 208.67.220.220
 
 
 
{{Note| Changes made to {{ic|/etc/resolv.conf}} take affect immediately.}}
 
 
 
== Protect /etc/resolv.conf ==
 
See [[Resolv.conf#Preserve_DNS_settings]] for how to preserve your settings in resolv.conf.
 
 
 
=== dhclient ===
 
If you use dhclient, you will need to add to (or create) to {{ic|/etc/dhclient.conf}}:
 
 
 
prepend domain-name-servers 127.0.0.1;
 
 
 
=== Pdnsd ===
 
See [[Pdnsd#OpenDNS]].
 
 
 
{{Tip| You may also specify these IPs in your router's configuration interface and merely point to your router's IP from {{ic|/etc/resolv.conf}}.}}
 
 
 
== Fixing problems with Google ==
 
OpenDNS hijacks Google-searches by routing all queries through their own servers first. This can be annoying because Google searches may slow down noticeably and it also breaks Google's FeelingLucky feature (e.g., entering digg in your adress bar will open www.digg.com). For the latter, there is a [https://addons.mozilla.org/en-US/firefox/addon/7993 Firefox-addon] that brings back the original behaviour. A more elegant solution is to redirect all queries for Google exclusively to your ISP's DNS Server. This can be done with [[dnsmasq]] (see [[Speeding up DNS with dnsmasq]] for more information).
 
 
 
== Resources ==
 
*[[resolv.conf]]
 
*[http://en.wikipedia.org/wiki/Domain_Name_System Domain Name System (DNS)]
 
*[http://www.opendns.com/ OpenDNS.com]
 
*[http://wiki.gotux.net/code:bash:onic OpenNIC Alternative DNS Installer]
 

Latest revision as of 10:05, 1 February 2014

Redirect to: