Unbound in der VM startet nicht

andronex

Benutzer
Mitglied seit
15. Feb 2021
Beiträge
95
Punkte für Reaktionen
10
Punkte
8
Hallo,
kann mir vielleicht jemand beim Einrichten von Unbound in der VM helfen?
VM mit Debian läuft, Unbound ist installiert, bekomme es aber nicht gestartet, bei unbound-checkconf kommt:

root@unbound:/etc/unbound# unbound-checkconf
/etc/unbound/“/etc/unbound/root.hints”: No such file or directory
[1615392571] unbound-checkconf[1001:0] fatal error: file with root-hints: ““/etc/unbound/root.hints”” does not exist
root@unbound:/etc/unbound#


root@unbound:/etc/unbound# service unbound start
Job for unbound.service failed because the control process exited with error code.
See “systemctl status unbound.service” and “journalctl -xe” for details.
root@unbound:/etc/unbound# journalctl -xe
Mär 10 17:12:05 unbound systemd[1]: unbound.service: Service RestartSec=100ms expired, scheduling restart.
Mär 10 17:12:05 unbound systemd[1]: unbound.service: Scheduled restart job, restart counter is at 5.
— Subject: Automatic restarting of a unit has been scheduled
— Defined-By: systemd
— Support: https://www.debian.org/support

— Automatic restarting of the unit unbound.service has been scheduled, as the result for
— the configured Restart= setting for the unit.
Mär 10 17:12:05 unbound systemd[1]: Stopped Unbound DNS server.
— Subject: A stop job for unit unbound.service has finished
— Defined-By: systemd
— Support: https://www.debian.org/support

— A stop job for unit unbound.service has finished.

— The job identifier is 1692 and the job result is done.
Mär 10 17:12:05 unbound systemd[1]: unbound.service: Start request repeated too quickly.
Mär 10 17:12:05 unbound systemd[1]: unbound.service: Failed with result ‘exit-code’.
— Subject: Unit failed
— Defined-By: systemd
— Support: https://www.debian.org/support

— The unit unbound.service has entered the ‘failed’ state with result ‘exit-code’.
Mär 10 17:12:05 unbound systemd[1]: Failed to start Unbound DNS server.
— Subject: A start job for unit unbound.service has failed
— Defined-By: systemd
— Support: https://www.debian.org/support

— A start job for unit unbound.service has finished with a failure.

— The job identifier is 1692 and the job result is failed.
Mär 10 17:12:05 unbound systemd[1]: Condition check resulted in Unbound DNS server via resolvconf being skipped.
— Subject: A start job for unit unbound-resolvconf.service has finished successfully
— Defined-By: systemd
— Support: https://www.debian.org/support

— A start job for unit unbound-resolvconf.service has finished successfully.

— The job identifier is 1753.


Die Dateien und Verzeichnisse sind alle da:

root@unbound:/etc/unbound# ls -all
insgesamt 36
drwxr-xr-x 3 root root 4096 Mär 10 17:00 .
drwxr-xr-x 74 root root 4096 Mär 10 16:37 ..
-rw-r–r– 1 root root 3316 Feb 17 17:26 root.hints
-rw-r–r– 1 root root 505 Mär 10 17:00 unbound.conf
drwxr-xr-x 2 root root 4096 Mär 10 16:51 unbound.conf.d
-rw-r—– 1 root root 2459 Mär 10 16:36 unbound_control.key
-rw-r—– 1 root root 1342 Mär 10 16:36 unbound_control.pem
-rw-r—– 1 root root 2455 Mär 10 16:36 unbound_server.key
-rw-r—– 1 root root 1334 Mär 10 16:36 unbound_server.pem
 

Tuxnet

Benutzer
Mitglied seit
02. Jan 2019
Beiträge
583
Punkte für Reaktionen
68
Punkte
48

andronex

Benutzer
Mitglied seit
15. Feb 2021
Beiträge
95
Punkte für Reaktionen
10
Punkte
8
Die ist korrekt, habe den Fehler gefunden, es lag an
typographisch englischen Anführungszeichen, habe gerade eingefügt, jetzt keine Fehler mehr. Allerdings funktioniert der Unboundserver nicht. Wenn ich ihn im Pihole einstelle kann ich keine Seiten mehr aufrufen, komischerweise werden Seiten weiterhin im Pihole Querylog gelogt, da ist die ganze Zeit Bewegung

das scheint auch zu stimmen

root@unbound:~# dig google.com

; <<>> DiG 9.11.5-P4-5.1+deb10u3-Debian <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54267
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
; COOKIE: 5295bf68b9e27e7f (echoed)
;; QUESTION SECTION:
;google.com. IN A

;; ANSWER SECTION:
google.com. 66 IN A 216.58.207.142

;; Query time: 30 msec
;; SERVER: 192.168.178.111#53(192.168.178.111)
;; WHEN: Mi Mär 10 20:00:25 CET 2021
;; MSG SIZE rcvd: 67

und dasd auch:

root@unbound:~# dig google.com @127.0.0.1

; <<>> DiG 9.11.5-P4-5.1+deb10u3-Debian <<>> google.com @127.0.0.1
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32899
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;google.com. IN A

;; ANSWER SECTION:
google.com. 1799 IN A 142.250.185.206

;; Query time: 219 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mi Mär 10 20:01:50 CET 2021
;; MSG SIZE rcvd: 55
 

Tuxnet

Benutzer
Mitglied seit
02. Jan 2019
Beiträge
583
Punkte für Reaktionen
68
Punkte
48
Wieso machst du eigentlich den unbound nicht im docker ? Habe da zwei laufen, funktioniert 1a
 

Ulfhednir

Benutzer
Sehr erfahren
Mitglied seit
26. Aug 2013
Beiträge
3.258
Punkte für Reaktionen
920
Punkte
174

andronex

Benutzer
Mitglied seit
15. Feb 2021
Beiträge
95
Punkte für Reaktionen
10
Punkte
8
habe es jetzt hinbekommen, der Eintrag interface mit der IP zum Unboundserver fehlte noch in der unbound.conf
 


 

Kaffeautomat

Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.

Als Dankeschön schalten wir deinen Account werbefrei.

:coffee:

Hier gehts zum Kaffeeautomat