Hodžův blog

14 Kvě

HowTo: Bind9 – disable IPv6 (couldn’t add command channel ::1#953: address not available)

Disable IPv6 in system
# echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
# echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf
# echo "net.ipv6.conf.lo.disable_ipv6 = 1" >> /etc/sysctl.conf
# /sbin/sysctl -p /etc/sysctl.conf

Disable IPv6 for Bind
# sed -i 's/-u bind/-u bind -4/g' /etc/default/bind9

Fix „address not available“ issue
# echo '' >> /etc/bind/named.conf.options
# echo 'include "/etc/bind/rndc.key";' >> /etc/bind/named.conf.options
# echo 'controls {' >> /etc/bind/named.conf.options
# echo ' inet 127.0.0.1 allow { localhost; } keys { rndc-key;};' >> /etc/bind/named.conf.options
# echo '};' >> /etc/bind/named.conf.options

Restart Bind
# service bind9 restart

Leave a Reply

Hodžův blog is is proudly powered by Wordpress and the Magellan Theme