Page 1 of 1

OPEN VPN Mobile DNS

Posted: Wed May 31, 2023 12:38 pm
by bigge32
I succesfully installed a Softher VNP server and I can connect it also using an Android mobile using the OPENVPN app.

The main issue is that on mobile side is impossible to change the DNS address. On a Windows side is really simple changing dns settings of VPN connection, but not on Android.

Is it possible to set server side the custom DNS that I want to use (Google's one) ? The server ethernet connection already has the Google DNS set but not come into mobile OpenVpn connection.

Thanks

ENrico

Re: OPEN VPN Mobile DNS

Posted: Wed May 31, 2023 1:33 pm
by bigge32
Solved myself !
Simply add this in the clent config file :

dhcp-option DNS <dns_server_ip_address>


Thanks !

Re: OPEN VPN Mobile DNS

Posted: Fri Jun 02, 2023 7:10 am
by shakibamoshiri
Another solution is simply add DNS servers to Secure NAT settings
OpenVPN client will use them