I have 2 VPNs instances running, they work as expected. I use PBR to manage the VPN policy which also works normal, the goal I want to achieve is to use the VPN DNS when I make a policy to send traffic to a VPN interface, with the policy based on domain names specifically. I am using AdGuard home, I installed it following the official OpenWrt documentation.
Trying a DNS leak test, I made a policy to send the https://browserleaks.com/dns traffic through my "vpndom" instance, it shows the VPN IP, but it is using the DNS from AdGuard Home, it should show the DNS from the VPN thus it would be the DNS of the country I am connected to.
I don't want to use my AdGuard DNS for the traffic sent though the VPN, not only with policies based on domain name. I tried to use the DNS policies options we have on PBR, but I had no success on that.
I am trying this on a GL.iNet MT3000 and with the original firmware it works the way I explained, showing the VPN IP and the VPN DNS when I set a policy based on domain name.
Thanks in advance.