pdnsd - weakish/cheat GitHub Wiki

pdnsd is a DNS server designed for local caching of DNS information. Correctly configured, it can significantly increase browsing speed on a broadband connection. Compared to bind or dnsmasq it can remember its cache after a reboot; "p" stands for persistent.

Config

On Debian/Ubuntu, select manual configuration when apt-get install. Edit /etc/default: START_DAEMON=yes and comment AUTO_MODE line. Then copy /usr/share/pdnsd/pdnsd-resolvconf.conf to /etc/pdnsd.conf.

Test

Test with drill domain.name. For the second run with the same domain, query time should be under 1 ms.

pdnsd-ctl

pdnsd-ctl controls pdnsd, e.g.

sudo pdnsd-ctl dump # View cache.
sudo pdnsd-ctl empty-cache