Record of some of the computer tech I deal with so that it's documented at least somewhere.

Tuesday, 15 September 2009

DNDR dns caching proxy

Although that sounds dangerously like a DNS server I just couldn't face bind/named.

Curiously it's not an OpenBSD binary package, I wonder if there's a reason for that.

http://sourceforge.net/projects/dnrd/
untar it then
./configure && make && make install
adduser dnrd
mkdir /usr/local/etc/dnrd
mv /usr/local/share/man/man8/dnrd.8 /usr/share/man/man8/dnrd.8

It will proxy DNS from the IP you specifiy on the command line with -s (required) and also serve out entries on a hosts like file : /usr/local/etc/dnrd/master
so for me it's
/usr/local/sbin/dnrd -b -s 85.189.102.5 -s 85.189.39.5
The -b tells it to round robin the -s entries
ooh why haven't I got round to doing it before, it's fabbo, another one to go in the box marked "essential".

Curiously the master file is only used when -d [1-4] is specified (it doesn't daemonize)
Then because loads of debug is spewing out I ended up installing rc-1.6-readline. I really need to get p9p sorted out.

pkg_add ftp://ftp.plig.net/pub/OpenBSD/snapshots/packages/i386/rc-1.6-readline.tgz
In the meantime at least I can write sane code.

No comments: