Ubuntu 16, Bind and disabling ipv6

I furiously tried to convert bind to operate only on ipv4 addresses but no success.

Ubuntu way is to add-4 to OPTIONS at /etc/default/bind9

-> No success 

After googling I found out the systemd has hijacked the startup and does not use the bind9-config file at all.

A proper script to modify is /lib/systemd/system/bind9.service
ExecStart=/usr/sbin/named -f -u bind
ExecStart=/usr/sbin/named -4 -f -u bind

Save and

systemctl daemon-reload

service bind9 restart

-> Success


Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>