AdGuard Home I want to use VPN DNS

I want to set up AdGuard Home and make it use my VPN’s DNS instead of Cloudflare or the default settings. I recently installed vanilla OpenWRT on my router. Before this, I used GL.iNet's fork of OpenWRT, and when I connected with Mullvad, AdGuard still worked and actively blocked content while using my VPN’s DNS.

Is it possible to achieve this on official OpenWRT?

im not sure how to do this on gl inet openwrt fork this was the defult when using the intergrated mullvad feature

Are you implying this isn't working on official OpenWrt?

Or are you asking for initial setup steps?

just wondering because I have no idea how to do this. This was just done out of the box on the GL.iNet version. On the GL.iNet version, it only used the VPN DNS on AdGuard if you used the integrated Mullvad setup in GL.iNet OpenWRT. If I used a WireGuard configuration, AdGuard wouldn't use my VPN DNS. I could also use DNS over HTTPS, I'm a bit skeptical about using third-party DNS servers for privacy reasons. I suppose using Mullvad's DNS is safer.

what can the initial steps to do this look like

Mullvad's DNS also a 3rd party DNS server ?

this conclusion is based on ... ?

Mullvad is also a third-party DNS compared to my ISP, but I trust Mullvad.

I already use a VPN through Mullvad 24/7, so using another DNS feels like giving up my DNS queries to a third party.

Mullvad also has a strict no-logs policy. I trust Mullvad much more than Cloudflare or other DNS providers.

I have read in VPN forums that it's generally better for privacy to stay within your VPN so that no other third party other than Mullvad has the option to see your queries.

It just feels like it's better for privacy not to give the queries to another provider other than the VPN.

I was able to set up Adblock by downloading the Adblock and LuCI-app-Adblock and using tcpdump, but it doesn't have as much flexibility as the AdGuard Home app. With Adblock installed, my router uses my VPN DNS. I did a leak test, and it only showed Mullvad DNS on the DNS leak test site, and it blocks ads and trackers, so it’s an alternative for now until I figure out AdGuard Home.

Router-based ad and tracker blocking is essentially important for me since I run an unconventional operating system on my phone and tablet, Ubuntu Touch, which doesn’t have many good options currently for ad and tracker blocking.

Or you could just dump Mullvad and still only share you DNS data with one 3rd party, since VPN does pretty much nothing for your internet privacy.

Oldie but goldie - https://overengineer.dev/blog/2019/04/08/very-precarious-narrative/.

Just add Mullvad’s dns address to your upstream dns server list (red stars)

or even easier add https://dns.mullvad.net/dns-query to your upstream dns server list (yellow star) that way your dns requests are double encrypted, once by mullvad and second by https :wink:

thanks will try that