OPNsense Forum

English Forums => General Discussion => Topic started by: spetrillo on July 10, 2024, 06:57:18 PM

Title: Recursive DNS
Post by: spetrillo on July 10, 2024, 06:57:18 PM
Hello all,

I was watching a YouTube video about turning Pi-Hole into a recursive DNS. Rather than doing that can I make my Unbound DNS in OPNsense recursive, so it only has to go out to the Internet when it does not have a DNS result?

Thanks,
Steve
Title: Re: Recursive DNS
Post by: Patrick M. Hausen on July 10, 2024, 09:24:56 PM
It is by default.
Title: Re: Recursive DNS
Post by: JamesFrisch on July 11, 2024, 08:20:12 PM
I was under the impression that

Settings - > General -> Allow DNS server list to be overridden by DHCP/PPP on WAN

is enabled by default.
Title: Re: Recursive DNS
Post by: Patrick M. Hausen on July 11, 2024, 08:26:37 PM
Yes? That will change which DNS servers OPNsense itself will use. If Unbound is enabled and if you configure your DHCP in a way to point clients at Unbound, Unbound will serve as a recursive resolver.
Title: Re: Recursive DNS
Post by: JamesFrisch on July 11, 2024, 09:44:45 PM
Ups  :)
I wrongfully assumed that the interfaces DHCPv4 default setting is to use the global DNS servers (in the default case, the ISP DNS servers) but that is only the second option if there is no unbound for that interface is running.

So you are right, by default it uses recursive DNS (unbound).