OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: bmorgenthaler on October 24, 2023, 06:37:14 PM

Title: Unbound listening on 127.0.0.1 but doesn't resolve internal names
Post by: bmorgenthaler on October 24, 2023, 06:37:14 PM
I have Unbound setup as my DNS resolver for my network and from my clients it works just fine but for my firewall itself it is failing to resolve internal system names. When I query an interface's IP like a client would do it resolves as expected but when I try against 127.0.0.1 I'm going out to root servers.

I've configured opnsense to use 127.0.0.1 as system DNS and no DHCP provided DNS from my ISP.

/etc/resolv.conf

domain home.arpa
nameserver 127.0.0.1
search home.arpa


And unbound is configured to run on all interfaces as recommended.

/var/unbound/unbound.conf snippet

# Interface IP(s) to bind to
interface: 0.0.0.0
interface: ::
interface-automatic: yes


What should I be looking at next?
Title: Re: Unbound listening on 127.0.0.1 but doesn't resolve internal names
Post by: CJ on October 25, 2023, 02:40:00 PM
Did you edit files or use the UI to make your config changes?

Do you have Do not use local DNS checked under System -> General -> Settings?

What do you have under Services -> Unbound -> Query Forwarding and DNS over TLS?

Post a screenshot of the Interfaces -> Diagnostics -> DNS Lookup page with nothing entered into the server black.