I just noted my caching bind9 dns server is using 306MB of my precious memory ! what the hell is it doing !? go to hell bind !
/etc/init.d/bind9 stop apt-get remove bind9
so I decided to install another caching dns server , after some research I found PowerDNS. it uses MySQL for storing its zones , but hopefully its caching component doesnt need mysql , so great , lets go and install it.
My favourite OS is debian lenny , so I ran the following command :
apt-get install pdns-recursor
WOW , it was very simple ! it is already working on localhost , but I needed it to listen on all IPs on my box and accept queries from everyone 😀 I wanted to serve public :p so I went to /etc/powerdns and opened “recursor.conf” file and made the following changes :
allow-from= local-address=0.0.0.0
and restarted the service by :
/etc/init.d/pdns-recursor restart
it’s done 😀 now it is working as a public caching name server.