AdGuard DNS over OpenVPN Server

Hi guys, I’m trying to make AdGuard DNS on my Flint 2 work when I’m connected to the OpenVPN server.

I tried using “dhcp-option DNS 10.0.0.1
redirect-gateway def1” in the client ovpn, but the DNS server was never reachable. If I used 1.1.1.1 instead it worked fine showing me that using AdGuard as the DNS didn’t work at all (10.0.0.1 is my Flint 2 IP, with AdGuard running on it).

Not sure how to progress from here. I’m on 4.7.3 if that helps, and confirming that AdGuard works fine over the WireGuard server if I configure manually as the DNS in the WireGuard config/app.

The client device is an iPhone.

Hi

It sounds like you're using your Flint 2 as an OpenVPN server and want the OpenVPN clients to use the AdGuard Home instance on the Flint 2 as their DNS server, is that correct?

If so, the solution is to change a dnsmasq setting in Luci.
By default, the router's DNS service is set to only respond to requests from its local network, which may be why your VPN client can't reach it.

Here's how to fix it:

  1. Go to the Luci.
  2. Navigate to Network > DHCP and DNS.
  3. Uncheck the "Local Service Only" option.

This will allow the router's DNS service to respond to requests from devices on the VPN network as well.

1 Like

Thank you, confirming this works great.