OPNsense Forum

English Forums => General Discussion => Topic started by: Could on December 14, 2023, 04:59:23 PM

Title: Forwarding IP address from Unbound to AdGuard
Post by: Could on December 14, 2023, 04:59:23 PM
Hi,

I know this question has been already asked, but I wasn't able to find a working solution.

I am using AdGuard (running on a docker container) and Unbound just because I like how it allows me to define DNS override and alias (AFAIK AdGuard doesn't have that feature) in order to reach my internal services using a nice name instead of IP address.

I've enabled "Services>Unbound>Query forwarding" in order to use AdGuard as DNS filtering, and it works perfectly.

There is anyway a little annoying thing, all DNS queries are in AdGuard are reported as made by the same IP address (that is the OPNSense interface).
Is there a way to solve this annoying thing?

Thanks
Title: Re: Forwarding IP address from Unbound to AdGuard
Post by: Patrick M. Hausen on December 14, 2023, 05:00:49 PM
Do it the other way round. Direct your clients at AdGuard Home and have AGH use Unbound as upstream.
Title: Re: Forwarding IP address from Unbound to AdGuard
Post by: Could on December 14, 2023, 06:08:44 PM
Oh, ok, thanks, I didn't consider that option.
Anyway that would mean that I have to set the DNS server for each interface?
I have 14 interfaces at the moment... So it is doable, but maybe not so maintainable (in case in future I need to change AdGuard IP address).

Anyway I will consider this option.
I am also considering to use Pi-Hole that if I am not wrong allows creating IP aliases/override.