I use pi-hole with unbound as my dns server , referenced and used from my router (Fritzbox).
pi-hole is installed as a lxc container under proxmox. The whole environment is debian bullseye.
The whole system works but feels sluiggish.
DNS Benchmark shows pi-hole as te fastest nameserver but with a very a large Standard deviation for uncached entries:
10. 10. 1. 20 | Min | Avg | Max |Std.Dev|Reliab%|
----------------+-------+-------+-------+-------+-------+
+ Cached Name | 0,002 | 0,003 | 0,006 | 0,001 | 100,0 |
+ Uncached Name | 0,013 | 0,599 | 3,774 | 0,925 | 100,0 |
+ DotCom Lookup | 0,012 | 0,016 | 0,025 | 0,003 | 100,0 |
---<O-OO---->---+-------+-------+-------+-------+-------+
pi.hole
Local Network Nameserver
Looking around I found that /etc/resolv.conf
references the fritzbox which is certainly wrong.
Reading https://docs.pi-hole.net/guides/dns/unbound/ i checked
root@pi-hole:/etc# systemctl is-active unbound-resolvconf.service
inactive
and
root@pi-hole:/etc# resolvectl
Global
Protocols: +LLMNR +mDNS -DNSOverTLS DNSSEC=no/unsupported
resolv.conf mode: foreign
Current DNS Server: 10.10.1.1
DNS Servers: 10.10.1.1
DNS Domain: fritz.box
Link 2 (eth0)
Current Scopes: LLMNR/IPv4 LLMNR/IPv6
Protocols: -DefaultRoute +LLMNR -mDNS -DNSOverTLS DNSSEC=no/unsupported
How should /etc/resolv.conf be filled when I use unbound ?
Thanks a lot
Norbert