Disabilitare IPV6 per Bind: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
=Debian Buster= | |||
* There were two steps to do this: | |||
vi /etc/default/bind9 | |||
OPTIONS="-u bind -4 | |||
vi /etc/bind/named.conf.options | |||
<pre> | |||
// Disable DNSSEC | |||
//dnssec-validation auto | |||
dnssec-enable no; | |||
// Disable IPv6 | |||
//listen-on-v6 { any; }; | |||
filter-aaaa-on-v4 yes; | |||
</pre> | |||
* Restart | |||
systemctl restart bind9 | |||
==Riferimenti== | |||
*[https://layer77.net/2018/10/12/disabling-ipv6-and-dnssec-in-bind9-ubuntu-16-04/ Disabling IPv6 and DNSSEC in Bind9 / Ubuntu 16.04 – Layer 77] | |||
=Debian Jessie= | =Debian Jessie= | ||
* C'È UN BUG, BISOGNA MODIFICARE LA UNIT SYSTEMD | * C'È UN BUG, BISOGNA MODIFICARE LA UNIT SYSTEMD | ||
| Line 23: | Line 50: | ||
bind 15281 2.8 3.4 587436 71620 ? Ssl 10:38 0:04 /usr/sbin/named -f -u bind -4 | bind 15281 2.8 3.4 587436 71620 ? Ssl 10:38 0:04 /usr/sbin/named -f -u bind -4 | ||
==Riferimenti== | |||
*[https://jonkristian.no/disable-ipv6-bind-debian/ How to Disable ipv6 for Bind on Debian – Jon Kristian] | |||
=Debian Lenny= | =Debian Lenny= | ||
Latest revision as of 13:06, 28 April 2022
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