Hi
I`m having trouble with getting pihole to use the 127.0.01#5335 dns. If I use pihile google dns for ip4 and custom Ip6 ( ..1#5335) I get now errors so, something with ip4 is on conflict.
As soon as I disable the all pihole dns to the custom 127.0.0.1#5335 dns I get
12:33:37: query[A] www.google.com from (device IP)
12:33:37: forwarded www.google.com to 127.0.0.1
12:33:37: forwarded www.google.com to ::1
12:33:37: forwarded www.google.com to 127.0.0.1
12:33:37: reply error is SERVFAIL
I installed via pihole unbound guide only added the autorenewal to cron as described here.. https://hoerli.net/pi-hole-mit-unbound-betreiben . Dont know auto renewal if this still is required?
From another guide if I read to disable the Ubuntu systemd-resolved as DNS Cache Daemon so unbound one is used. Is this actually required?
My CONFIG is a Khadas Vim3 with running Ubuntu 20.04 focal with nginx in a unifi network where only ports 80/443 are open to the world:
- Pi-hole [v5.2.4] on Port 90 / Web Interface [v5.3.1] / FTL[v5.5.1]
- Unbound 1.9.4. on port 5335 + ip6 enabled
/etc/hosts
127.0.0.1 localhost Khadas
::1 localhost Khadas ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
/etc/systemd/resolved.conf
[Resolve]
DNS=127.0.0.1
#FallbackDNS=
#Domains=
#LLMNR=no
#MulticastDNS=no
#DNSSEC=no
#DNSOverTLS=no
#Cache=no-negative
DNSStubListener=no
#ReadEtcHosts=yes
sudo unbound -d -vvvv
[1611405476] unbound[6303:0] notice: Start of unbound 1.9.4.
[1611405476] unbound[6303:0] debug: increased limit(open files) from 1024 to 16458
[1611405476] unbound[6303:0] debug: creating udp4 socket 127.0.0.1 5335
[1611405476] unbound[6303:0] debug: creating tcp4 socket 127.0.0.1 5335
[1611405476] unbound[6303:0] debug: creating udp4 socket 127.0.0.1 5335
[1611405476] unbound[6303:0] debug: creating tcp4 socket 127.0.0.1 5335
[1611405476] unbound[6303:0] debug: switching log to syslog
What am still doing wrong, as I would like to use UNBOUND the correct way.