AdGuard DNS rewrites not working over VPN (wireguard)

Hello mates

I have a Flint1 with the latest firmware.

I use Adguard and it’s working great in my LAN or even if I connecetd via wireguard. (I had change the DNS value to 10.0.0.1)

Now I’ve installed a Nextcloud wich is not published, I use it only internally but I use a domain so I’ve created a DNS rewrites in my Adguard.

I also use this methot to access internally to my other services when I’m conected to the wifi instead via public network.

mysupoercooldomain.com 192.168.8.18.

Works like a charm when I’m in the LAN, I see this in the Adguard log
image

And when I’m using VPN I get this error in my browser

DNS_PROBE_FINISHED_NXDOMAIN

I see this (I’ve done the test using my Android Phone conected to the Flint using the official wireguard app)

When I access to a not rewrited URL

image

This are my wireguard server options

This is my DNS configuration

I have access to the LAN because i can connect to my server (192.168.8.20) via ssh (port 22) using the same phone and conected to the Flint wireward VPN in the same way.

I can ping the machine 192.168.8.18 successfully but there is no dns resolution for this domain.

Could help me anyone?

Thanks in advance

Try adding your router’s IP in the Private reverse DNS servers.

1 Like

Thanks for your reply.

I’ve tried but nothing have changed

I’ve also tried with the /etc/hosts with no result.

Unable to resolve host “mydomain”

I’ve found the solution but I don’t like it

it works if you disable the DNS rebinding attack protection.

I don’t undertand 2 things.

  1. Why this dns settings is workinf if i’m usind ADGuard the there is a message that tells you that will don’t work?
  2. Why is working with the prtection when I’m connected to my lan but I have to disable it when I’m connected via VPN?