Quick, and dirty:
apt-get install libssl-dev wget http://ftp.isc.org/isc/bind9/9.6.0-P1/bind-9.6.0-P1.tar.gz ./configure --prefix=/opt/bind9 --with-openssl=yes --sysconfdir=/etc/bind --with-randomdev=/dev/urandom make && make install
Setup the named.conf, options, loggin, and zones
named.conf
include "/etc/bind/named.logging";
include "/etc/bind/named.options";
zone "." {
type hint;
file "root.cache";
};
include "/etc/bind/named.master";
include "/etc/bind/named.reverse";
named.logging
logging {
channel "querylog" {
file "/var/log/query.log";
print-time yes;
};
channel default_log {
file "/var/log/named.log";
print-time yes;
};
category queries { querylog; };
category default { default_log; default_debug; };
category lame-servers { null; };
};
named.options
acl "toddsmithorg_networks" { 23.35.27.1/25; };
acl "client_networks" { 192.198.140.0/25; };
options {
directory "/var/named";
pid-file "/var/run/named.pid";
allow-recursion { toddsmithorg_networks; client_networks; };
version "no thankyou";
notify no;
listen-on port 53 {
127.0.0.1;
23.35.27.10;
};
allow-transfer {
23.35.27.11;
};
};
named.master
zone "toddsmith.org" IN {
type master;
file "toddsmith.org";
};
Setup your init script
#! /bin/sh
NAMED_ROOT="/opt/bind9"
case "$1" in
start)
echo -n "Starting named... "
$NAMED_ROOT/sbin/named -u named -c /etc/bind/named.conf && echo OK
;;
stop)
echo -n "Stopping named... "
kill -15 `cat /var/run/named.pid` && echo OK
;;
restart|reload)
$0 stop && $0 start
;;
*)
echo "Usage: $0 {start|stop|restart|reload}"
exit 1
esac
exit 0
This should get you started