Open Mahdi-ME opened 6 years ago
Does your .ovpn file have dhcp-option DNS
set?
Supplementary Data For Reference (Not necessarily solution)
https://unix.stackexchange.com/questions/201946/how-to-define-dns-server-in-openvpn
I'm getting the same issue. It seems to stem from the route-nopull option in the CONNECT function. This will override the dhcp-option DNS sent from the server or specified locally in the client configuration.
I recently had some time to check it out but I'm on an internet connection right now that doesn't allow me to use the tun interface in this way. I was going to try allow-pull-fqdn
. If someone can verify that for me, I'll change it. Otherwise will have to wait for me to be back on regular connection.
@TensorTom adding allow-pull-fqdn did not work for me. Btw I'm also seeing Options error: option 'dhcp-option' cannot be used in this context ([PUSH-OPTIONS])
. Do note that I'm trying to get this working in a docker container.
After connection, still local DNS is used