Tech Segment: DNS Caching speeds up your internet

Watch and Discuss the latest show here
Post Reply
Jarod
Site Admin
Posts: 190
Joined: Sat Dec 11, 2010 12:34 am
Contact:

Tech Segment: DNS Caching speeds up your internet

Post by Jarod » Mon Sep 26, 2011 9:02 pm




So here is our first attempt at 720p video, turns out my pc is a tad too slow to handle 1080p as every editing suite bogs to a crawl then crashes when I load it up.

Anyways, DNS Caching.
By going to 6 websites and only 6 sites nearly 300 DNS Querys are made. at 23ms each that adds up to 6.9 seconds.
By caching dns requests locally that reduces access time to under 1ms, which cuts the total time to 0.3 seconds.

for loading 6 websites saving 6 seconds is quite impressive.


How to do it:

If your router supports dd-wrt log into your management page (usually http://192.168.1.1)
Click on services, scroll down to DNSMasq, make sure DNSMasq is enabled and Local DNS is disabled.
Add "cache-size=2000" (sans quotes, change number to 1000 if you have a router with low ram) to the Additional DNSMasq Options textbox. save the settings and apply them.
In windows go Start>Control Panel>Network Connections then right click on your LAN Connection, select Properties, then double click Internet Protocol (TCP/IP)
change setting to Use The Following DNS Server Addresses and add your routers ip as the first entry, add your alternate as either Google DNS or your ISPs dns servers, which can be found by double clicking the LAN connection in Network Connections, going to Support, then Clicking Details.


If you have no dd-wrt then grab Acrylic DNS from http://sourceforge.net/projects/acrylic/
Install it, then go to Start>Control Panel>Network Connections then right click on your LAN Connection, select Properties, then double click Internet Protocol (TCP/IP)
change setting to Use The Following DNS Server Addresses and add 127.0.0.1 as the first entry, add your alternate as either Google DNS or your ISPs dns servers, which can be found by double clicking the LAN connection in Network Connections, going to Support, then Clicking Details.



All tests and speed claims made using GRC DNS Benchmark http://www.grc.com/dns/benchmark.htm, Namebench http://code.google.com/p/namebench/, and Wireshark http://www.wireshark.org/

Post Reply