I setup an openvpn server with static key (certificate mode is not usable due to DPI at the national gateway), but I cannot successfully change the DNS automatically after the connection. I searched over the Internet and SE, and every one suggests the use dhcp-option.
I tried to add this line to client.ovpn
dhcp-option DNS 8.8.8.8
There is no effect. I tried to add this line in server conf
push "dhcp-option DNS 8.8.8.8"
Neither has any effect.
In fact, according to the manual,
--dhcp-option type [parm]
Set extended TAP-Win32 TCP/IP properties, must be used with --ip-win32 dynamic or --ip-win32 adaptive.
But my client is a Mac machine, server Linux. Any solutions to the problem?