Softpedia
 

NEWS CATEGORIES:



NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
Home > News > Linux > Other Tips, Tricks and Tutorials

May 26th, 2007, 14:39 GMT · By

DNS Hacks for Faster Web Browsing

SHARE:

Adjust text size:


Welcome to OpenDNS
Enlarge picture
What is DNS? Domain Name System (DNS) is like a phone book, but for Internet. DNS translates human-readable computer hostnames, e.g. www.softpedia.com, into an IP address needed by the networking equipment to deliver information. In other words, when you open your browser and type an URL in the address bar , e.g. www.softpedia.com, the DNS server translates that URL into a numeric IP address, from www.softpedia.com to 193.226.140.131. To understand better, type the IP address from the previous example into your browser's address bar and you will see that it will be transformed into www.softpedia.com.

Now, if you have a DSL, ADSL, Dial-up or FIOS (fiber-optic service) Internet connection, you must understand that your computer uses the default DNS server(s) from your Internet Service Provider (ISP) and if this DNS server is slow in resolving URLs, you (the victim) will see that almost all the web pages that you try to access, are loading slow. So, practically it doesn't matter how fast your Internet pipe is. For example, you can be the proud owner of a 1 Gbps bandwith,
but if the DNS servers from your ISP are slow, your web surfing will be slow too.

What can you do to fix this? You can call or go to your ISP and complain about this problem, until you get tired probably, or you can continue reading this guide in order to improve your web surfing sessions.

Use OpenDNS - Make your Internet better

Probably you have figured it out already that you must change your DNS servers, in order to speed up your web surfing. And to achieve this, you will have to use the OpenDNS service, which is the #1 DNS service provider around the world. OpenDNS is FREE and requires nothing to download. Moreover, it will not replace your existing Internet connection, it will just make it better. Also, OpenDNS offers some other free services, like the possibility to have your personal web shortcuts. For more information about OpenDNS please visit the official home page.

Here is what you must do. Please back up your DNS addresses before replacing them with the ones from OpenDNS, in case you want to return to them later for any reason. The DNS server addresses for OpenDNS are:

208.67.222.222
208.67.220.220


For Static IP address

If you have a static IP address that you must manually configure in order to have Internet access, please use the following method.

Open a console and type:

CODE
sudo gedit /etc/resolv.conf

and add the following lines, above the existing lines in that file:

nameserver 208.67.222.222
nameserver 208.67.220.220


For Dynamic IP address (DHCP)

If you use a dynamic IP address (DHCP), that means you get your Internet IP address, subnet mask, DNS and gateway automatically from your ISP's DHCP server, please follow the instructions below:

Open a console and type:

CODE
sudo gedit /etc/dhcp3/dhclient.conf

Replace the line that says:

#prepend domain-name-servers 127.0.0.1;

with this one:

prepend domain-name-servers 208.67.222.222, 208.67.220.220;

Restart your network for the changes to take effect:

CODE
sudo /etc/init.d/networking restart

For Ubuntu users

If you use Ubuntu, please go to System -> Administration -> Networking, click on the third tab (DNS) and add, one by one, the OpenDNS addresses on top of the first field (DNS Servers). Close the window and restart your computer.

Review imageReview image


What now? Visit http://welcome.opendns.com/ to test your new settings. If you see a web page that says: Welcome to OpenDNS! Your Internet is safer, faster, and smarter because you're using OpenDNS. Thank you!, then you're back in business! Enjoy your lightning-fast Internet connection!

Broadband ONLY Hacks

For broadband user ONLY, please add the following lines (copy/paste) in your /etc/sysctl.conf file. Open a console and type:

CODE
sudo gedit /etc/sysctl.conf

and paste this:

# Tweaks for faster broadband...
net.core.rmem_default = 524288
net.core.rmem_max = 524288
net.core.wmem_default = 524288
net.core.wmem_max = 524288
net.ipv4.tcp_wmem = 4096 87380 524288
net.ipv4.tcp_rmem = 4096 87380 524288
net.ipv4.tcp_mem = 524288 524288 524288
net.ipv4.tcp_rfc1337 = 1
net.ipv4.ip_no_pmtu_disc = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_fack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1
net.ipv4.tcp_ecn = 0
net.ipv4.route.flush = 1

Then type the following code in the console, in order to activate the settings immediately:

CODE
sysctl -p

This guide was successfully tested on an Ubuntu 7.04 machine. For Windows XP/Vista operating system, please go here.
FILED UNDER:
DNS
Linux
Ubuntu
OpenDNS
Hacks

TELL US WHAT YOU THINK:

26,290 hits · 4 comments · Link to this article · Print article · Send to friend · Subscribe to news

MUST-READ RELATED ARTICLES:


Ubuntu 7.04 - Well Done

Ubuntu Studio 7.04 Released

Ubuntu Goes Mobile

Ubuntu Announced the Mobile and Embedded Edition

Ubuntu Linux for Dell Machines

READER COMMENTS:


Comment #1 by: BaltikaTroika on 27 May 2007, 00:22 UTC reply to this comment

I've been using OpenDNS for a while now on my computers. It's fantastic! I've never had problems like I have with traditional DNS servers.

OpenDNS also offers some added functionality. You can put a search query into your address bar - if OpenDNS can't find your query as a website, it'll switch it over to a Yahoo search.

If you make a mistake typing, for example www.sodtpedia.com, it'll recognize this and send you to the correct site.

Most importantly for people who are unaware of the dangers out there, OpenDNS also offers an anti-phishing service. If it recognizes a site as a phishing site, it'll give you a big warning screen.

What do they want in return? They'll display ads in the rare case that you land on their search page (when you don't know which url you're going to). I find this to be very fair, and actually use this search function quite a bit.

Don't let the name fool you, though, there's nothing open source about OpenDNS.

Overall, I recommend OpenDNS to everybody who's interested.


Comment #2 by: cletus_rock on 28 May 2007, 10:06 UTC reply to this comment

can anyone tell me how do i open console in windows XP SP2....????

Comment #2.1 by: marius.nestor on 29 May 2007, 18:43 GMT

Hi

for Windows XP or Vista, please click on the following link :

http://news.softpedia.com/news/Boost-Internet-Connection-with-Quick-Responsive-DNS-Servers-55864.shtml


Comment #3 by: BP on 26 Nov 2008, 17:31 UTC reply to this comment

It works- makes your internet faster and blocks all the malicious ones!

If you want to learn how to use OpenDNS on the official site, go to:

https://www.opendns.com/smb/start/computer/

Then select your computer.

After you select your computer, just do everything it tells you on this page.
When you finish, you are done. You DO NOT have to do Step 2 or Step 3. It is completely unnecessary. When you finish Step 1, you are automatically using OpenDNS. You only have to do Step 2 and Step 3 if you want to change OpenDNS settings such as Parental Controls.

Hope this helps to anyone who needs it!

Copyright © 2001-2012 Softpedia. Contact/Tip us at

WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM