Hello. I faced a problem when connecting OpenVPN on Xiaomi AX3000T router with OpenWRT firmware (tried versions 23 and 24).
The VPN session itself installs successfully - I get an IP address from the VPN server, but the DNS is still from my ISP, not the one that should be given out through the VPN.
I checked the configuration on other devices - the VPN server does send its DNS (via dhcp-option DNS x.x.x.x.x), but on OpenWRT it is not automatically applied. As a result, DNS queries bypass the VPN, which violates privacy and sometimes causes problems with access to the desired resources.
I want to implement such a configuration that OpenWRT automatically pulls up the DNS sent from the VPN-server without the need to manually write it every time (since dynamic DNS is used and it can change).
Could you please advise me on how to properly configure this behavior?
I would be grateful for any recommendations, especially if someone has already solved a similar problem on OpenWRT