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?
OpenVPN DNS doesn't get pushed on Linux 18.04 (even with changes)
-
- OpenVpn Newbie
- Posts: 2
- Joined: Thu Nov 29, 2018 4:22 pm
-
- 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)
Same here.
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
This worked fine the last months but for an unknown reason it stopped working.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.
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
