selbst compiliertes unbound auf raspberry pi

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
smack9898
Beiträge: 48
Registriert: 16.12.2018 10:52:34

selbst compiliertes unbound auf raspberry pi

Beitrag von smack9898 » 15.01.2019 12:17:49

hi forum,
Ich versuche auf meinen Raspberry die neuste Version von unbound zu kompelieren.

Orientiert habe ich mich an diesen Text.
https://www.howtoforge.de/anleitung/ins ... bian-etch/

allerdings habe habe ich die root.hints datei nicht nach /etc/unbound heruntergeladen
sondern mit 'sudo curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.root'
nach /var/unbound

wenn ich jetzt versuche unbound start bzw "service unbound status" abfrage, kriege ich als Antwort folgendes zurück.
Jan 15 12:08:00 raspberrypi systemd[1]: Starting unbound.service...
Jan 15 12:08:01 raspberrypi unbound[730]: $Starting unbound: [1547550481] unbound[738:0] warning: too many file descriptors
Jan 15 12:08:01 raspberrypi unbound[730]: [1547550481] unbound[738:0] warning: continuing with less udp ports: 465
Jan 15 12:08:01 raspberrypi systemd[1]: Started unbound.service.
Jan 15 12:08:01 raspberrypi unbound[739]: [739:0] notice: init module 0: validator
Jan 15 12:08:01 raspberrypi unbound[739]: [739:0] notice: init module 1: iterator
Jan 15 12:08:01 raspberrypi unbound[739]: [739:1] error: could not read root hints /var/unbound/root.hints: No such file or
Jan 15 12:08:01 raspberrypi unbound[739]: [739:1] error: Could not set root or stub hints
Jan 15 12:08:01 raspberrypi unbound[739]: [739:1] info: server stats for thread 1: 0 queries, 0 answers from cache, 0 recur
Weiss jemand vielleicht rat_

Thx,smack9898

JTH
Moderator
Beiträge: 3023
Registriert: 13.08.2008 17:01:41
Wohnort: Berlin

Re: selbst compiliertes unbound auf raspberry pi

Beitrag von JTH » 15.01.2019 12:27:48

smack9898 hat geschrieben: ↑ zum Beitrag ↑
15.01.2019 12:17:49
allerdings habe habe ich die root.hints datei nicht nach /etc/unbound heruntergeladen
sondern mit 'sudo curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.root'
nach /var/unbound
Ist das Hervorgehobene ein Tipp- oder Copy-&-Paste-Fehler? Damit landet die Datei in /etc/unbound/root.hints, nicht wie du schreibst in /var/unbound/root.hints. Und die Fehlermeldung

Code: Alles auswählen

error: could not read root hints /var/unbound/root.hints: No such file or [directory]
deutet genau darauf hin.
Manchmal bekannt als Just (another) Terminal Hacker.

smack9898
Beiträge: 48
Registriert: 16.12.2018 10:52:34

Re: selbst compiliertes unbound auf raspberry pi

Beitrag von smack9898 » 16.01.2019 11:31:07

Das ist ziemlich sicher nur ein kopier fehler von mir.

Code: Alles auswählen

ls -la /var/unbound/
insgesamt 36
drwxr-xr-x  6 unbound unbound 4096 Jan 15 11:56 .
drwxr-xr-x 18 root    root    4096 Jan 15 09:43 ..
drwxr-xr-x  2 unbound unbound 4096 Jan 15 10:13 dev
drwxr-xr-x  2 unbound unbound 4096 Jan 15 10:13 etc
-rw-r--r--  1 unbound unbound 3315 Jan 15 09:23 root.hints
-rw-r--r--  1 unbound unbound  333 Jan 15 09:29 unbound.conf
-rw-r--r--  1 unbound unbound 1780 Jan 15 09:22 unbound.conf.ancient
drwxr-xr-x  2 unbound unbound 4096 Jan 15 10:14 unbound.conf.d
drwxr-xr-x  3 unbound unbound 4096 Jan 15 11:56 var
Denn wenn man, sich das hier anschaut habe ich nachträglich die root.hints, doch noch nach /var/unbound heruntergeladen.

Ausserdem habe ich noch eine sub confs entsprechened angepast.

Code: Alles auswählen

#    root-hints: "/etc/unbound/root.hints"
    root-hints: "/var/unbound/root.hints"

Vielleicht hilf das ja hier

Code: Alles auswählen

root@raspberrypi:/var/unbound# unbound-checkconf /var/unbound/unbound.conf
/var/unbound/root.hints.: No such file or directory
[1547634578] unbound-checkconf[8813:0] fatal error: file with root-hints: "/var/unbound/root.hints." does not exist in chrootdir /var/unbound
root@raspberrypi:/var/unbound#
was allerdings mit der aussage von oben nun wieder nicht zusammen past.
hmm

mat6937
Beiträge: 2951
Registriert: 09.12.2014 10:44:00

Re: selbst compiliertes unbound auf raspberry pi

Beitrag von mat6937 » 16.01.2019 12:31:23

smack9898 hat geschrieben: ↑ zum Beitrag ↑
16.01.2019 11:31:07
was allerdings mit der aussage von oben nun wieder nicht zusammen past.
Wie ist die Ausgabe von:

Code: Alles auswählen

file /var/unbound/root.hints
?

Versuch mal mit:

Code: Alles auswählen

sudo systemctl daemon-reload
systemctl status unbound
sudo systemctl stop unbound
sudo systemctl start unbound
systemctl status unbound
Wenn es keine generierte service unit für unbound gibt (systemctl cat unbound), dann mit dem Start-Stop-Script einen restart machen.

smack9898
Beiträge: 48
Registriert: 16.12.2018 10:52:34

Re: selbst compiliertes unbound auf raspberry pi

Beitrag von smack9898 » 16.01.2019 12:37:55

Hier sind der ergebnisse..

Code: Alles auswählen

file /var/unbound/root.hints
/var/unbound/root.hints: ASCII text
sudo systemctl daemon-reload
root@raspberrypi:/var/unbound# systemctl status unbound
● unbound.service
Loaded: loaded (/etc/init.d/unbound; generated; vendor preset: enabled)
Active: active (exited) since Wed 2019-01-16 11:27:39 CET; 1h 8min ago
Docs: man:systemd-sysv-generator(8)
CGroup: /system.slice/unbound.service

Jan 16 11:27:39 raspberrypi systemd[1]: Starting unbound.service...
Jan 16 11:27:39 raspberrypi unbound[8770]: $Starting unbound:
Jan 16 11:27:39 raspberrypi systemd[1]: Started unbound.service.
Jan 16 11:27:39 raspberrypi unbound[8780]: [8780:0] notice: init module 0: validator
Jan 16 11:27:39 raspberrypi unbound[8780]: [8780:0] notice: init module 1: iterator
Jan 16 11:27:39 raspberrypi unbound[8780]: [8780:0] error: could not read root hints /root.hints.: No such file or directory
Jan 16 11:27:39 raspberrypi unbound[8780]: [8780:0] error: Could not set root or stub hints
root@raspberrypi:/var/unbound# sudo systemctl stop unbound
root@raspberrypi:/var/unbound# sudo systemctl start unbound
root@raspberrypi:/var/unbound# systemctl status unbound
● unbound.service
Loaded: loaded (/etc/init.d/unbound; generated; vendor preset: enabled)
Active: active (exited) since Wed 2019-01-16 12:36:01 CET; 6s ago
Docs: man:systemd-sysv-generator(8)
Process: 9166 ExecStart=/etc/init.d/unbound start (code=exited, status=0/SUCCESS)

Jan 16 12:36:01 raspberrypi systemd[1]: Starting unbound.service...
Jan 16 12:36:01 raspberrypi unbound[9166]: $Starting unbound:
Jan 16 12:36:01 raspberrypi unbound[9175]: [9175:0] notice: init module 0: validator
Jan 16 12:36:01 raspberrypi unbound[9175]: [9175:0] notice: init module 1: iterator
Jan 16 12:36:01 raspberrypi systemd[1]: Started unbound.service.
Jan 16 12:36:01 raspberrypi unbound[9175]: [9175:0] error: could not read root hints /root.hints.: No such file or directory
Jan 16 12:36:01 raspberrypi unbound[9175]: [9175:0] error: Could not set root or stub hints
Jan 16 12:36:01 raspberrypi unbound[9175]: [9175:0] info: server stats for thread 0: 0 queries, 0 answers from cache, 0 recursions, 0 prefetch
Jan 16 12:36:01 raspberrypi unbound[9175]: [9175:0] info: server stats for thread 0: requestlist max 0 avg 0 exceeded 0 jostled 0
root@raspberrypi:/var/unbound#
Leider immer noch ohne erfolg

JTH
Moderator
Beiträge: 3023
Registriert: 13.08.2008 17:01:41
Wohnort: Berlin

Re: selbst compiliertes unbound auf raspberry pi

Beitrag von JTH » 16.01.2019 12:42:22

Ich will ja nicht nur nach möglichen Tippfehlern suchen :wink: , aber:
smack9898 hat geschrieben: ↑ zum Beitrag ↑
16.01.2019 11:31:07
root@raspberrypi:/var/unbound# unbound-checkconf /var/unbound/unbound.conf
/var/unbound/root.hints.: No such file or directory
[1547634578] unbound-checkconf[8813:0] fatal error: file with root-hints: "/var/unbound/root.hints." does not exist in chrootdir /var/unbound
Ist da in der unbound.conf bei root-hints am Ende ein . zu viel?
Manchmal bekannt als Just (another) Terminal Hacker.

smack9898
Beiträge: 48
Registriert: 16.12.2018 10:52:34

Re: selbst compiliertes unbound auf raspberry pi

Beitrag von smack9898 » 16.01.2019 13:00:27

Verdammt jetzt sehe ich es auch!

Aber ich habe hier noch eine weitere config, welche genauso rum-nervt.

Code: Alles auswählen

cat unbound.conf
# Unbound configuration file for Debian.
#
# See the unbound.conf(5) man page.
#
# See /usr/share/doc/unbound/examples/unbound.conf for a commented
# reference config file.
#
# The following line includes additional configuration files from the
# /etc/unbound/unbound.conf.d directory.

Code: Alles auswählen

 cat 02_Validate.conf
server:
    verbosity: 1
    port: 53
    do-ip4: yes
    do-ip6: yes
    do-udp: yes
    do-tcp: yes

#    root-hints: "/etc/unbound/root.hints"
    root-hints: "/var/unbound/root.hints"

    hide-identity: yes
    hide-version: yes
    harden-glue: yes
    harden-dnssec-stripped: yes
    use-caps-for-id: yes

    cache-min-ttl: 300
    cache-max-ttl: 86400
    prefetch: yes
    num-threads: 2
am meisten irrtiert immer noch dieser teil

Code: Alles auswählen

 unbound-checkconf /var/unbound/unbound.conf
[1547640067] unbound-checkconf[9584:0] fatal error: config file /var/unbound/unbound.conf is not inside chroot /usr/local/etc/unbound
das das ding von einer weitern config in /usr/local/etc/unbound erzaehlt

Antworten