Unbound is very slow
I have been using Opnsense for about a month, but I have noticed that my DNS server is slow. I used Unbound, but in my tests, I think the DNS is not performing well. Is there a way to improve this.
Unbound defaults to being a full private DNS server that uses Root hints for lookup. Since you as an individual will not keep the cache fully populated it will be regularly making very slow root server lookups.
If you instead have it forward to a FAST public resolver like cloudflare or google DNS you should see an immediate speed increase.
I suggest taking advantage of the Unbound DNS: DNS over TLS settings
I use cloudflare as my upstream DoT provider with
server: 1.1.1.1 and 1.0.0.1
port: 853
cn: cloudflare-dns.com