Loading Search...

Friday, March 19, 2010

wicd + dnsmasq + opendns - opendns (ads) guides = faster browsing

there are many many ways to speed up your browsing experiences.

one of many ways is optimizing your DNS server list.
each and every file on the internet is located on a certain (sub)domain.
so, each and every request of any file from your browser will need to query DNS servers first, before it can be fetch to your browser.

as you can see, DNS play significan roles in your browsing experience. if you're using firefox and see a lot of 'looking up someslowdomainname.com' then your DNS is slow.

here's how i speed up DNS lookup a little bit. first, install dnsmasq to do dns queries and cache all the results. thus repetitive lookup will perform much faster because the result is already in cache.

then, tell dnsmasq to do the queries to opendns to let it filtered out phising and malware sites. but, opt-out the opendns guides and block my local ISP ads.
edit /etc/dnsmasq.conf and add this lines:
bogus-nxdomain= #telkom speedy indonesia ads
bogus-nxdomain= #opendns guides
#bogus-nxdomain= #opendns blocked pages
#bogus-nxdomain= #verisign

last, must not pass this one, tell the clients (i use wicd to manage my linux networks), including browsers, messengers, etc.. to query local dnsmasq instead of the far away opendns servers.
edit /etc/resolv.conf.head and add these lines:
nameserver #query local dnsmasq
#dnsmasq will query these. also, in case dnsmasq fail, all apps will query these too:

if you need more redundancy, in case all your dns fail, add this to /etc/resolv.conf.tail

wicd will automatically merge dns from your router/isp between resolv.conf.head and resolv.conf.tail

now... our dns is much faster... what else can we do to speed up browsing? what do you do?

tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain