How to build a local DNS caching server

Being in Malaysia we are gifted with superior Internet speeds. NOT!! Services like openDNS are awesome but the lag between us and them often results in sluggish performance anyways. One way to improve performance is to use local DNS servers. I don’t use Streamyx’s DNS servers because they SUCK!!. TIME’s DNS servers are ok but I still prefer openDNS. To improve performance, I put together a local DNS caching-only server that forwards to openDNS. Now I have openDNS with lighting fast response. Let’s walk though the steps to get your own local DNS caching-only server setup. I’m using openSUSE 11 so the steps might vary depending on your distro. Install BIND pandora:~ # zypper in bind Edit /etc/named.conf pandora:~ # vi /etc/named..conf Uncomment the forwarders section. Update the default values with the values below. forwarders { 208.67.222.222; 208.67.220.220; }; <br /> forward only; Add the line " forward only; " This will tell BIND to only forward to the forwarders and not the ROOT servers. Start the service. To have the service start automatically run " chkconfig named on " pandora:~ # service named start Let’s make sure your caching server is running fine. pandora:~ # nslookup google.com localhost<br /> Server:        localhost<br /> Address:       127.0.0.1#53 Non-authoritative answer:<br /> Name:  google.com<br /> Address: 64.233.167.99<br /> Name:  google.com<br /> Address: 72.14.207.99<br /> Name:  google.com<br /> Address: 64.233.187.99 <br /> pandora:~ # nslookup yahoo.com localhost<br /> Server:        localhost<br /> Address:       127.0.0.1#53 Non-authoritative answer:<br /> Name:  yahoo.com<br /> Address: 68.180.206.184<br /> Name:  yahoo.com<br /> Address: 206.190.60.37 Update your /etc/resolv.conf file. This will tell your system to use the local DNS server which we just setup instead of the external ones. Add the lines below to the file. nameserver 127.0.0.1<br /> nameserver 127.0.0.2 That’s it. You now have local DNS caching. Enjoy!! ...

2008-08-28 · 2 min · Danesh Manoharan

Beijing 2008 is over

!2 years spent planning and execution. The Chinese have done it. They WOWed the world for over 2 weeks. Beijing 2008 will surely go down in history as a proud moment for all Asians. Check out these awesome pictures (from Boston.com) to look back at Beijing 2008.

2008-08-27 · 1 min · Danesh Manoharan

Malaysia Today blocked by TMNET

[Malaysia Today][2] blocked by TMNET. Use http://mt.harapanmalaysia.com/2008/ Looks like our boys are at it again. Bastards, either their DNS is un-patched or this is deliberate. Update: The bastards turned out to be MCMC!!! Sources: MalaysiaKini || Kamal Talks || BangsaMalaysia If you’re on streamyx and using TMNET dns servers (202.188.0.133/202.188.1.5/etc….) then Malaysia Today is off limits to you. Streamyx DNS servers are resolving malaysia-today.net to “127.0.0.1” . See screenshot...

2008-08-26 · 1 min · Danesh Manoharan

Anwar Wins!!

It’s official. Anwar (PKR) has taken Permatang Pauh. Da man is finally back in Parliament. He received 35,195 votes wherelese his oponent Arif Shah only managed 15,524 votes. That’s a win by 15,671 votes for Anwar of PKR. Sources: MalaysiaKini || Politickler || Malaysian Insider

2008-08-26 · 1 min · Danesh Manoharan

Permatang Pauh by-election results soon

The ballot counting has began and as of now DSAI is leading by 14K to 4K. Looks like it’s gonna stay that way. YEY!! Keep up2date with the results through: Politickler || MalaysianInsider || MalaysiaKini

2008-08-26 · 1 min · Danesh Manoharan