DNS leaks when using VPN routes

Hi, I have OpenWrt 22.03.4 on a Xiaomi 4a Giga installed and been using it for a while. I have a WireGuard VPN interface and 2 LAN interfaces. lan2 is routed directly to the main modem and have normal internet connection. br-lan is routed through the WG VPN so anyone connecting through lan port 1 or wifi have VPN connection. I recently discovered that my lan2 interface which is supposed to have the main modem connection has the VPN connection DNS and it's causing problems. (I forgot to mention that the router is connected to the main modem by wifi). only wwan interface (the DHCP client interface which has the internet from the main modem) has "use default gateway" checked and all other interfaces have it disabled and the routes are manually configured. Any ideas how to fix this DNS issue? and have every interface use its own?
I tried to explain my configuration as thoroughly as I could. Please ask for any extra info if you need it.
Thanks

Perhaps setting DNS servers in the dhcp settings using option 6

Actually, I had to set custom DNS to be used by the lan2 interface itself to resolve the problem but, thanks for pointing it out!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.