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

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
kur1j
OpenVpn Newbie
Posts: 2
Joined: Thu Nov 29, 2018 4:22 pm

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

Post by kur1j » 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?

mfuhrmann
OpenVpn Newbie
Posts: 1
Joined: Wed Mar 04, 2020 7:42 am

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

Post by mfuhrmann » Wed Mar 04, 2020 8:44 am

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 :-(

Post Reply