Disabilitare IPV6 per Bind: Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
=Debian Buster=
* Disabling IPv6 and DNSSEC
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;
systemctl restart bind9
=Debian Jessie=
=Debian Jessie=
* C'È UN BUG, BISOGNA MODIFICARE LA UNIT SYSTEMD
* C'È UN BUG, BISOGNA MODIFICARE LA UNIT SYSTEMD

Revision as of 13:05, 28 April 2022

Debian Buster

  • Disabling IPv6 and DNSSEC

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;

systemctl restart bind9

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