OpenVPN DNS doesn't get pushed on Linux 18.04 (even with changes)
Posted: Tue Jan 07, 2020 10:05 pm
My pushed DNS seems to work fine on Windows clients.
However, on Linux (18.04) it doesn't seem to properly use the pushed DNS.
I followed the instructions here https://openvpn.net/vpn-server-resource ... ith-linux/
which said to:
add to the bottom of my openvpn.conf file.
script-security 2
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved
I did have to install "sudo apt install openvpn-systemd-resolved" as well.
However, doing this, does not seem to fix the issue and I cannot resolve DNS through the VPN.
The machine is a Ubuntu 18.04.3.
I am connecting via the CLI method.
$ openvpn --config client.ovpn
The following seems to work without issue on 16.04.
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
Any suggestions?
However, on Linux (18.04) it doesn't seem to properly use the pushed DNS.
I followed the instructions here https://openvpn.net/vpn-server-resource ... ith-linux/
which said to:
add to the bottom of my openvpn.conf file.
script-security 2
up /etc/openvpn/update-systemd-resolved
down /etc/openvpn/update-systemd-resolved
I did have to install "sudo apt install openvpn-systemd-resolved" as well.
However, doing this, does not seem to fix the issue and I cannot resolve DNS through the VPN.
The machine is a Ubuntu 18.04.3.
I am connecting via the CLI method.
$ openvpn --config client.ovpn
The following seems to work without issue on 16.04.
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
Any suggestions?