Speed your internet browsing on Ubuntu using local DNS Cache

Use these steps to speed your internet browsing requests on Ubuntu, by enabling local DNS cache :

1- Run this command to install dnsmasq package

sudo apt-get install dnsmasq

2- Modify the file :

sudo gedit /etc/dnsmasq.conf

change the line :

#listen-address=

To :

listen-address=127.0.0.1

3- Modify the file :

sudo gedit /etc/dhcp3/dhclient.conf

Ucomment the line :

prepend domain-name-servers 127.0.0.1;

4- Add the DNS 127.0.0.1 to your connection through your connection manager

Your DNS servers should be :

127.0.0.1,8.8.8.8,4.2.2.4

5- Restart your connection

sudo /etc/init.d/networking restart

To check if it is working issue the following command twice:

dig php-architect.com | grep 'Query'

first response will be like :

;; Query time: 96 msec

run the previous command again

dig php-architect.com | grep 'Query'

Response now should be :

;; Query time: 0 msec

This will speed your browsing especially in pages with many HTTP requests.

4
Leave a Reply

avatar
4 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
AnxiousNutSpeed your internet browsing on Ubuntu using local DNS Cache | PHP … | DNS InternetTweets that mention Speed your internet browsing on Ubuntu using local DNS Cache | PHP Architect blog -- Topsy.com Recent comment authors
  Subscribe  
Notify of
trackback

[…] This post was mentioned on Twitter by skip bieber [A+ MCP]. skip bieber [A+ MCP] said: RT @lamptag: Speed your internet browsing on Ubuntu using local DNS Cache http://bit.ly/hVuXeB #networking #ubuntu […]

trackback

[…] This post was mentioned on Twitter by dsfadsfgafgf. dsfadsfgafgf said: RT @lamptag: Speed your internet browsing on Ubuntu using local DNS Cache http://bit.ly/gLWIkV #ubuntu #speed #browsing #dns […]

trackback

[…] from: Speed your internet browsing on Ubuntu using local DNS Cache | PHP … Posted in Uncategorized, Using, cache, dns, internet, it, net, speed, you, your | Tags: cache, […]

AnxiousNut
Guest
AnxiousNut

<code>prepend domain-name-servers 127.0.0.1</code> was not there to uncomment, so I added it! Works awesomely, thanks! 🙂