I have tried to get unbound working but for some reason it only resolves for localhost and opnsense IP. My configuration is as follows-
System-> Settings-> General-> DNS Servers-> 1.1.1.1, 8.8.8.8
Services-> DHCPv4-> DNS-> BLANK
Services-> Unbound-> General-> Network Interfaces-> LAN
Services-> Unbound-> General-> Outgoing Network Interfaces-> WAN
Services-> Unbound-> Query Forwarding-> Use System Nameservers
When I try DNS lookup from diagnostics in interface tab and ping google.com with server ip 192.168.0.1, it does return with a result and also it is saving it to the cache but my network clients are unable to get DNS.
Anything I'm doing wrong here?
I don’t know anything about Unbound and Opnsense, but it seems like your DHCP settings should set something as a nameserver for the clients.
If you’re forwarding from the “router”, it would just be the router’s IP. If you look at your clients, are they getting a value for “DNS server” from DHCP?
I would expect it to be 192.168.0.1.