Ich habe schon länger einen virtual private server, auf den ich mich per ssh einlogge und mail sowie verschiedene Webservices drauf laufen lassen. Wegen den Problemen mit openssh Sicherheitslücken in der letzten Zeit habe ich mich dazu gezwungen gefühlt, das System auf Debian 12 zu aktualisieren. Das hat soweit auch alles gut funktioniert. Mein bind9 hat aber seitdem irgendwie ein Problem mit der Konfiguration. Ich kann ihn nur noch mit der öffentlichen IP laufen lassen.
Zuvor hatte ich folgende Konfig Datei:
Code: Alles auswählen
options {
directory "/var/cache/bind";
auth-nxdomain no;
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
80.241.218.68; 46.182.19.48;
};
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
listen-on port 53 { 127.0.01; };
listen-on-v6 { none; };
query-source address * port 53;
transfer-source * port 53;
notify-source * port 53;
allow-transfer { 127.0.0.1; };
};
Code: Alles auswählen
root@MEINNAME:~# sudo systemctl status bind9
× named.service - BIND Domain Name Server
Loaded: loaded (/lib/systemd/system/named.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Sat 2024-07-06 11:04:17 CEST; 1 week 0 days ago
Docs: man:named(8)
Process: 868 ExecStart=/usr/sbin/named -f $OPTIONS (code=exited, status=1/FAILURE)
Main PID: 868 (code=exited, status=1/FAILURE)
CPU: 19ms
Jul 06 11:04:17 MEINEDOMAIN systemd[1]: named.service: Main process exited, code=exited, status=1/FAILURE
Jul 06 11:04:17 MEINEDOMAIN systemd[1]: named.service: Failed with result 'exit-code'.
Jul 06 11:04:17 MEINEDOMAIN systemd[1]: Failed to start named.service - BIND Domain Name Server.
Jul 06 11:04:17 MEINEDOMAIN systemd[1]: named.service: Scheduled restart job, restart counter is at 5.
Jul 06 11:04:17 MEINEDOMAIN systemd[1]: Stopped named.service - BIND Domain Name Server.
Jul 06 11:04:17 MEINEDOMAIN systemd[1]: named.service: Start request repeated too quickly.
Jul 06 11:04:17 MEINEDOMAIN systemd[1]: named.service: Failed with result 'exit-code'.
Jul 06 11:04:17 MEINEDOMAIN systemd[1]: Failed to start named.service - BIND Domain Name Server.
root@MEINNAMEl:~#
Code: Alles auswählen
2024-07-13T18:21:07.185976+02:00 MEINNAME named[633]: starting BIND 9.18.24-1-Debian (Extended Support Version) <id:>
2024-07-13T18:21:07.186957+02:00 MEINNAME named[633]: running on Linux x86_64 6.1.0-22-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.94-1 (2024-06-21)
2024-07-13T18:21:07.187065+02:00 MEINNAME named[633]: built with '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' '--libdir=/usr/lib/x86_64-linux-gnu' '--sysconfdir=/etc/bind' '--with-python=python3' '--localstatedir=/' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--disable-static' '--with-gost=no' '--with-openssl=/usr' '--with-gssapi=yes' '--with-libidn2' '--with-json-c' '--with-lmdb=/usr' '--with-gnu-ld' '--with-maxminddb' '--with-atf=no' '--enable-ipv6' '--enable-rrl' '--enable-filter-aaaa' '--disable-native-pkcs11' '--enable-dnstap' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -ffile-prefix-map=/build/reproducible-path/bind9-9.18.24=. -fstack-protector-strong -Wformat -Werror=format-security -fno-strict-aliasing -fno-delete-null-pointer-checks -DNO_VERSION_DATE -DDIG_SIGCHASE' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2'
2024-07-13T18:21:07.188018+02:00 MEINNAME named[633]: running as: named -f -u bind
2024-07-13T18:21:07.188109+02:00 MEINNAME named[633]: compiled by GCC 12.2.0
2024-07-13T18:21:07.188168+02:00 MEINNAME named[633]: compiled with OpenSSL version: OpenSSL 3.0.11 19 Sep 2023
2024-07-13T18:21:07.188232+02:00 MEINNAME named[633]: linked to OpenSSL version: OpenSSL 3.0.13 30 Jan 2024
2024-07-13T18:21:07.188289+02:00 MEINNAME named[633]: compiled with libuv version: 1.44.2
2024-07-13T18:21:07.188352+02:00 MEINNAME named[633]: linked to libuv version: 1.44.2
2024-07-13T18:21:07.188408+02:00 MEINNAME named[633]: compiled with libxml2 version: 2.9.14
2024-07-13T18:21:07.188469+02:00 MEINNAME named[633]: linked to libxml2 version: 20914
2024-07-13T18:21:07.188540+02:00 MEINNAME named[633]: compiled with json-c version: 0.16
2024-07-13T18:21:07.188594+02:00 MEINNAME named[633]: linked to json-c version: 0.16
2024-07-13T18:21:07.188643+02:00 MEINNAME named[633]: compiled with zlib version: 1.2.13
2024-07-13T18:21:07.188728+02:00 MEINNAME named[633]: linked to zlib version: 1.2.13
2024-07-13T18:21:07.188794+02:00 MEINNAME named[633]: ----------------------------------------------------
2024-07-13T18:21:07.188850+02:00 MEINNAME named[633]: BIND 9 is maintained by Internet Systems Consortium,
2024-07-13T18:21:07.189051+02:00 MEINNAME named[633]: Inc. (ISC), a non-profit 501(c)(3) public-benefit
2024-07-13T18:21:07.190138+02:00 MEINNAME named[633]: corporation. Support and training for BIND 9 are
2024-07-13T18:21:07.190230+02:00 MEINNAME named[633]: available at https://www.isc.org/support
2024-07-13T18:21:07.190299+02:00 MEINNAME named[633]: ----------------------------------------------------
2024-07-13T18:21:07.190360+02:00 MEINNAME named[633]: adjusted limit on open files from 524288 to 1048576
2024-07-13T18:21:07.190413+02:00 MEINNAME named[633]: found 1 CPU, using 1 worker thread
2024-07-13T18:21:07.190485+02:00 MEINNAME named[633]: using 1 UDP listener per interface
2024-07-13T18:21:07.206790+02:00 MEINNAME dovecot: master: Dovecot v2.3.19.1 (9b53102964) starting up for imap (core dumps disabled)
2024-07-13T18:21:07.210112+02:00 MEINNAME named[633]: DNSSEC algorithms: RSASHA1 NSEC3RSASHA1 RSASHA256 RSASHA512 ECDSAP256SHA256 ECDSAP384SHA384 ED25519 ED448
2024-07-13T18:21:07.211512+02:00 MEINNAME named[633]: DS algorithms: SHA-1 SHA-256 SHA-384
2024-07-13T18:21:07.211621+02:00 MEINNAME named[633]: HMAC algorithms: HMAC-MD5 HMAC-SHA1 HMAC-SHA224 HMAC-SHA256 HMAC-SHA384 HMAC-SHA512
2024-07-13T18:21:07.211687+02:00 MEINNAME named[633]: TKEY mode 2 support (Diffie-Hellman): yes
2024-07-13T18:21:07.211794+02:00 MEINNAME named[633]: TKEY mode 3 support (GSS-API): yes
2024-07-13T18:21:07.248014+02:00 MEINNAME systemd[1]: Started dovecot.service - Dovecot IMAP/POP3 email server.
2024-07-13T18:21:07.264687+02:00 MEINNAME named[633]: loading configuration from '/etc/bind/named.conf'
2024-07-13T18:21:07.265748+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:30: token 'port' is deprecated
2024-07-13T18:21:07.266623+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:31: token 'port' is deprecated
2024-07-13T18:21:07.266729+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:32: token 'port' is deprecated
2024-07-13T18:21:07.270008+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:30: 'query-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.270215+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:27: undefined ACL '127.0.01'
2024-07-13T18:21:07.270420+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:31: 'transfer-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.270637+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:32: 'notify-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.270757+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:31: 'transfer-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.270865+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:32: 'notify-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.270966+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:31: 'transfer-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.271067+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:32: 'notify-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.271573+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:31: 'transfer-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.271681+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:32: 'notify-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.271805+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:31: 'transfer-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.271891+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:32: 'notify-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.272006+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:31: 'transfer-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.272072+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:32: 'notify-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.272175+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:31: 'transfer-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.272261+02:00 MEINNAME named[633]: /etc/bind/named.conf.options:32: 'notify-source' cannot specify the DNS listener port (53)
2024-07-13T18:21:07.285747+02:00 MEINNAME named[633]: loading configuration: failure
2024-07-13T18:21:07.286110+02:00 MEINNAME named[633]: exiting (due to fatal error)
2024-07-13T18:21:07.294769+02:00 MEINNAME systemd[1]: named.service: Main process exited, code=exited, status=1/FAILURE
2024-07-13T18:21:07.294930+02:00 MEINNAME systemd[1]: named.service: Failed with result 'exit-code'.
Code: Alles auswählen
:~# cat /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
auth-nxdomain no;
// If there is a firewall between you and nameservers you want
// to talk to, you may need to fix the firewall to allow multiple
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
// If your ISP provided one or more IP addresses for stable
// nameservers, you probably want to use them as forwarders.
// Uncomment the following block, and insert the addresses replacing
// the all-0's placeholder.
forwarders {
46.182.19.48;
// 80.241.218.68; auskommentiert am 13.07.2024 weil nicht mehr erreichbar
};
//========================================================================
// If BIND logs error messages about the root key being expired,
// you will need to update your keys. See https://www.isc.org/bind-keys
//========================================================================
dnssec-validation auto;
// listen-on port 53 { 127.0.01; }; auskommentiert am 13.07.2024 weil fehlermeldung dadurch
// listen-on-v6 { none; }; auskommentiert am 13.07.2024 weil fehlermeldung dadurch
listen-on-v6 { any; }; //am 13.07.2024 zum testen eingefügt
// query-source address * port 53; auskommentiert am 13.07.2024 weil fehlermeldung dadurch
// transfer-source * port 53; auskommentiert am 13.07.2024 weil fehlermeldung dadurch
// notify-source * port 53; auskommentiert am 13.07.2024 weil fehlermeldung dadurch
allow-transfer { 127.0.0.1; };
};