Page 1 of 1

OpenVPN DNS doesn't get pushed on Linux 18.04 (even with changes)

Posted: Tue Jan 07, 2020 10:05 pm
by kur1j
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?

Re: OpenVPN DNS doesn't get pushed on Linux 18.04 (even with changes)

Posted: Wed Mar 04, 2020 8:44 am
by mfuhrmann
Same here.
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.
This worked fine the last months but for an unknown reason it stopped working.

As far as I understand you should use systemd-resolve in an Ubuntu since it seems to become "the way" to set DNS. So I'm wondering why it makes so much trouble :-(