Difference between revisions of "OpenDNS"

From ArchWiki
Jump to navigation Jump to search
m (unnecesary, confusing info. grammar. repetition)
(archive)
 
(54 intermediate revisions by 20 users not shown)
Line 1: Line 1:
[[Category: Networking (English)]]
 
[http://www.opendns.com OpenDNS] is an alternative [http://en.wikipedia.org/wiki/Domain_Name_System DNS] service. If your Internet pages are loading slow or if you want to make your Internet safer, smarter and more reliable in general, OpenDNS may be of help.
 
  
==DNS in Linux==
+
#redirect [[ArchWiki:Archive]]
Your ISP (usually) provides working DNS servers; however, the 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 doesn't work it will immediately switch to better one.  However, Linux usually takes longer to timeout, which could be the reason you are getting a delay.
+
[[Category:Archive]]
 
 
Use dig (provided by package {{Package Official|dnsutils}}) before any changes, repeat after making the adjustments in the section [[OpenDNS#What do I do?|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
 
 
 
== Using DNS ==
 
Edit /etc/resolv.conf and add the OpenDNS <tt>nameservers</tt> to the top of the file so they are used first. Optionally remove other servers already listed in order to only use OpenDNS:
 
# OpenDNS nameservers
 
nameserver 208.67.222.222
 
nameserver 208.67.220.220
 
Changes made to /etc/resolv.conf take affect immediately.
 
 
 
=== dhcpcd ===
 
If you are using '''dhcpcd''', edit /etc/dhcpcd.conf and remove ''domain_name_servers'' option to make it look like this:
 
option domain_name, domain_search, host_name
 
This will prevent dhcpcd from adding other nameservers to resolv.conf.
 
 
 
You will also need to edit or create /etc/resolv.conf.head in order to add the OpenDNS nameservers. The same principles apply as with /etc/resolv.conf; add them to the top of the file and optionally delete the rest:
 
# OpenDNS nameservers
 
nameserver 208.67.222.222
 
nameserver 208.67.220.220
 
dhcpcd dynamically generates /etc/resolv.conf by prepending /etc/resolv.conf.head and parsing options from /etc/dhcpcd.conf.
 
 
 
Restart networking after editing or creating /etc/resolv.conf.head in order to make the changes take effect:
 
# /etc/rc.d/network restart
 
 
 
{{Tip|You may also specify these IPs in your router's configuration interface and merely point to your router's IP from /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 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] bringing 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).
 
 
 
== External Resources ==
 
*[http://en.wikipedia.org/wiki/Domain_Name_System Domain Name System (DNS)]
 
*[http://www.opendns.com/ OpenDNS.com]
 

Latest revision as of 09:20, 11 September 2018

Redirect to: