- keine DNS Server eingetragen- "Allow DNS server list to be overridden by DHCP/PPP on WAN" -> haken raus
If "Use System Nameservers" is checked, Unbound will use the DNS servers entered in System->Settings->General or those obtained via DHCP or PPP on WAN if the "Allow DNS server list to be overridden by DHCP/PPP on WAN" is checked.
Ich glaube, ihr habt da beide etwas übersehen.
Und wenn Du jetzt Unbound verwenden willst, geht das nicht? Woher soll der Unbound denn wissen, welche DNS er befragen soll?
Steht so auch in dessen Doku: "Unbound does not perform recursion itself ". Er muss also alle Anfragen "forwarden".
forward-zone: name: "." forward-addr: 1.1.1.1 forward-addr: 8.8.8.8 forward-addr: 185.90.156.222 forward-addr: 185.90.157.222 forward-addr: 217.237.151.51 forward-addr: 89.233.43.71
{% if all_forwards|length > 0 %}[...]{% endif %}
# cat /var/unbound/unbound.conf########################### Unbound Configuration############################# Server configuration##server:chroot: /var/unboundusername: unbounddirectory: /var/unboundpidfile: /var/run/unbound.pidroot-hints: /var/unbound/root.hintsuse-syslog: yesport: 53include: /var/unbound/advanced.confharden-referral-path: nodo-ip4: yesdo-ip6: yesdo-udp: yesdo-tcp: yesdo-daemonize: yesso-reuseport: yesmodule-config: "python validator iterator"num-threads: 2msg-cache-slabs: 4rrset-cache-slabs: 4infra-cache-slabs: 4key-cache-slabs: 4auto-trust-anchor-file: /var/unbound/root.key# Interface IP(s) to bind tointerface: 0.0.0.0interface: ::interface-automatic: yes# Outgoing interfaces to be usedoutgoing-interface: 37.138.***.***# Private networks for DNS Rebinding prevention (when enabled)private-address: 0.0.0.0/8private-address: 10.0.0.0/8private-address: 100.64.0.0/10private-address: 169.254.0.0/16private-address: 172.16.0.0/12private-address: 192.0.2.0/24private-address: 192.168.0.0/16private-address: 198.18.0.0/15private-address: 198.51.100.0/24private-address: 203.0.113.0/24private-address: 233.252.0.0/24private-address: ::1/128private-address: 2001:db8::/32private-address: fc00::/8private-address: fd00::/8private-address: fe80::/10# Private domains (DNS Rebinding)include: /var/unbound/private_domains.conf# Static host entriesinclude: /var/unbound/host_entries.conf# DHCP leases (if configured)include: /var/unbound/dhcpleases.conf# Custom includesinclude: /var/unbound/etc/*.confpython:python-script: dnsbl_module.pyremote-control: control-enable: yes control-interface: 127.0.0.1 control-port: 953 server-key-file: /var/unbound/unbound_server.key server-cert-file: /var/unbound/unbound_server.pem control-key-file: /var/unbound/unbound_control.key control-cert-file: /var/unbound/unbound_control.pem
# drill freenet.deError: error sending query: Could not send or receive, because of network error# drill freenet.de @8.8.8.8;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 19708;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0;; QUESTION SECTION:;; freenet.de. IN A;; ANSWER SECTION:freenet.de. 1 IN A 62.104.23.121;; AUTHORITY SECTION:;; ADDITIONAL SECTION:;; Query time: 26 msec;; SERVER: 8.8.8.8;; WHEN: Thu Dec 7 18:59:32 2023;; MSG SIZE rcvd: 44# drill google.deError: error sending query: Could not send or receive, because of network error# drill google.de @8.8.8.8;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 46255;; flags: qr rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0;; QUESTION SECTION:;; google.de. IN A;; ANSWER SECTION:google.de. 300 IN A 142.250.186.131;; AUTHORITY SECTION:;; ADDITIONAL SECTION:;; Query time: 33 msec;; SERVER: 8.8.8.8;; WHEN: Thu Dec 7 19:00:09 2023;; MSG SIZE rcvd: 43
19:44:30.341822 IP (tos 0x0, ttl 128, id 60380, offset 0, flags [none], proto UDP (17), length 65) 192.168.178.5.62578 > OPNsense.domain: [udp sum ok] 56360+ A? www.supermagnete.de. (37)19:44:30.345418 IP (tos 0x0, ttl 64, id 7617, offset 0, flags [none], proto UDP (17), length 65) OPNsense.domain > 192.168.178.5.62578: [udp sum ok] 56360 ServFail q: A? www.supermagnete.de. 0/0/0 (37)
Andere Frage: Gibt es einen speziellen Grund, warum Du keinen Forwarder benutzen willst? Eigentlich macht das ja nicht unbedingt Sinn, wenn Deine Kiste alles selbst auflöst....
# drill freenet.de;; ->>HEADER<<- opcode: QUERY, rcode: SERVFAIL, id: 26644;; flags: qr rd ra ; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0;; QUESTION SECTION:;; freenet.de. IN A;; ANSWER SECTION:;; AUTHORITY SECTION:;; ADDITIONAL SECTION:;; Query time: 3 msec;; SERVER: 127.0.0.1;; WHEN: Thu Dec 7 20:23:02 2023;; MSG SIZE rcvd: 28
Eigentlich gibts nur einen Grund, Sicherheit und Anonymität ( so gut wie geht ).Die Unbound Anfragen gehen ja direkt an die Root Server.Der Denkanstoss kam von hier:https://www.kuketz-blog.de/pi-hole-einrichtung-und-konfiguration-mit-unbound-adblocker-teil2/Habt Ihr was "verdächtiges" in der unbound.conf entdecken können?