Disabilitare IPV6 per Bind

From RVM Wiki
Jump to navigation Jump to search

Debian Buster

  • There were two steps to do this:
vi /etc/default/bind9
OPTIONS="-u bind -4
vi /etc/bind/named.conf.options
// Disable DNSSEC 
//dnssec-validation auto
dnssec-enable no;

// Disable IPv6
//listen-on-v6 { any; };
filter-aaaa-on-v4 yes;
  • Restart
systemctl restart bind9

Riferimenti

Debian Jessie

  • C'È UN BUG, BISOGNA MODIFICARE LA UNIT SYSTEMD
vi /lib/systemd/system/bind9.service
  • Aggiungere
EnvironmentFile=-/etc/default/bind9
  • Modificare
ExecStart=/usr/sbin/named -f $OPTIONS 
  • Modificare le opzioni:
vi /etc/default/bind9
OPTIONS="-u bind -4"
  • Riavviare e controllare:
systemctl daemon-reload

systemctl restart bind9.service
ps auxw | grep bind
bind     15281  2.8  3.4 587436 71620 ?        Ssl  10:38   0:04 /usr/sbin/named -f -u bind -4

Riferimenti

Debian Lenny

sudoedit /etc/default/bind9
OPTIONS="-4 -u bind"
//-4 = to use ipv4 only.
sudo invoke-rc.d bind9 restart


Riferimenti