Bind

What version of bind are you running?
Here you get some hints: http://www.freebsddiary.org/bind-version.php

With nslookup:

$ nslookup -q=txt -class=CHAOS version.bind. 0
Server: ducky.nz.freebsd.org
Address: 0.0.0.0 
VERSION.BIND text = "8.2.2-P5"

Or with dig:

dig @ns.example.com -c CH -t txt version.bind

Force transfer of given zone:

rndc reload zone  

Remove a given name out of your cache:

rndc flushname your.host.tld

Disable ipv6 on bind9
Edit /etc/default/bind9 and change OPTIONS (add -4):

# run resolvconf?
RESOLVCONF=no

# startup options for the server
OPTIONS="-4 -u bind"

Edit /etc/bind/named.conf.options as well and change:

; from
listen-on-v6 { any; };
; to
listen-on-v6 { none; };

Don't forget to reload bind: /etc/init.d/bind reload

Bind chroot

Valid for Debian Lenny up to Wheezy:

apt-get install bind9 dnsutils
/etc/init.d/bind9 stop

Edit:

/etc/default/bind9
# run resolvconf?
RESOLVCONF=yes

# startup options for the server
OPTIONS="-u bind -t /var/lib/named"

Prepare the chroot environment:

mkdir -p /var/lib/named/{etc,dev}
mkdir -p /var/lib/named/var/cache/bind
mkdir -p /var/lib/named/var/run/bind/run

mv /etc/bind /var/lib/named/etc
ln -s /var/lib/named/etc/bind /etc/bind

mknod /var/lib/named/dev/null c 1 3
mknod /var/lib/named/dev/random c 1 8
chmod 666 /var/lib/named/dev/null /var/lib/named/dev/random
chown -R bind:bind /var/lib/named/var/*
chown -R bind:bind /var/lib/named/etc/bind

Edit or create:

/etc/rsyslog.d/bind-chroot.conf
$AddUnixListenSocket /var/lib/named/dev/log
/etc/init.d/rsyslog restart
/etc/init.d/bind9 start
linux/bind.txt · Last modified: 2014-05 by tb
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready