Archive for December, 2003

djbdns local cache

Friday, December 12th, 2003

Just setup a local DNS cache using djbdns on my computer. Not really sure why, except that I was bored. It was really pretty easy. I just had to emerge djbdns which brought along a couple dependencies. Then ‘rc-update add svscan default’ for daemontools, ‘dnscache-setup’ for setting up djbdns. I chose most of the defaults… have it only listening on, forwarding lookups to my ISP’s DNS. It changed resolv.conf to point to, but I had to change /etc/conf.d/net.:

dhcpcd_eht0=” -R ”

That’s all that was needed. I can watch the cache hits by looking at the log in /service/dnscache/log/main/current. Pretty cool. Pretty easy.