OPNsense Forum

English Forums => 25.1, 25.4 Production Series => Topic started by: IsaacFL on May 12, 2025, 01:06:49 AM

Title: Has anybody tried using DNSmasq in front of Unbound
Post by: IsaacFL on May 12, 2025, 01:06:49 AM
In the guide, it suggests having unbound on port 53 acting as DNS and then forwarding local queries to Dnsmasq via port 53053.

Has anybody tried to reverse it where dnsmasq resides on port 53 and then uses unbound on port 5335 as the upstream resolver for dnsmasq?

That is basically what pihole does for its dns/dhcp.
https://docs.pi-hole.net/guides/dns/unbound/ (https://docs.pi-hole.net/guides/dns/unbound/)

Currently I had some dns looping issues as I have a real custom domain name.

Title: Re: Has anybody tried using DNSmasq in front of Unbound
Post by: IsaacFL on May 12, 2025, 01:51:52 AM
I am trying it and it works well actually. First error found is:
firewall alias resolve error HOST_PRINTERS (no nameservers)

looks like the firewall can't find the name server if not unbound
Title: Re: Has anybody tried using DNSmasq in front of Unbound
Post by: kasper93 on May 12, 2025, 03:02:37 AM
Wouldn't it be possible to register local leases in unbound in some other way? Running two DNS servers just for this seems like a low-effort workaround for limitation that shouldn't exist.