OpenVPN doesn't respect dns servers in settings

Bug #1799262 reported by CrazySky
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
network-manager-openvpn (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Hello! After upgrading to Ubuntu 18.10 OpenVPN doesn't respect dns servers in settings. It trying to resolve internal host with default DNS server except resolving with dns servers from connection settings. On Ubuntu 18.04 all works fine

1) 18.10
2) 1.8.6-1ubuntu1
3) OpenVPN uses DNS servers for resolving from connection settings
4) Resolving used by default DNS server

ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: network-manager-openvpn 1.8.6-1ubuntu1
ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
Uname: Linux 4.18.0-10-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.10-0ubuntu13
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Oct 22 19:46:17 2018
InstallationDate: Installed on 2018-09-24 (28 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
SourcePackage: network-manager-openvpn
UpgradeStatus: Upgraded to cosmic on 2018-10-22 (0 days ago)

Revision history for this message
CrazySky (makarovdenis11) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager-openvpn (Ubuntu):
status: New → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. What's the output of "systemd-resolve --status"?

The behaviour change could be a side effect of the fix for bug #1754671

Changed in network-manager-openvpn (Ubuntu):
importance: Undecided → High
status: Confirmed → Incomplete
Revision history for this message
CrazySky (makarovdenis11) wrote :

The output of systemd-resolve in attachment.

> The behaviour change could be a side effect of the fix for bug #1754671

Before update to Cosmic in Bionic everything works fine

Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you give some details on your VPN config and on the DNS server you expect to be used?

Changed in network-manager-openvpn (Ubuntu):
status: Incomplete → New
Revision history for this message
CrazySky (makarovdenis11) wrote :

The vpn connection config created by network-manager-openvpn in attachment. I changed some values such as remote host name.

As you can see in IPv4 I used internal DNS. I can resolve internal dns names with this server via dig utility but OpenVPN doesn't resolve internal host names

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in network-manager-openvpn (Ubuntu):
status: New → Confirmed
Revision history for this message
Abel Boldú (aboldu) wrote :

This is affecting users of dappnode.io platform when connecting from Ubuntu.
The DNS server pushed by OpenVPN server is not being added to clients.
A temporary fix can be applied, see https://askubuntu.com/questions/1032476/ubuntu-18-04-no-dns-resolution-when-connected-to-openvpn, but it's not very convenient for users.

Can this settings be pushed to systemd-resolved ?

Revision history for this message
Bart (dmitriy-murzin) wrote :

Some problem on Ubuntu 21.10
Im create OpenVPN connection in Setting/Network, set "Use this connection only for resources on its network" and DNS not working( Im manual set dns and it not working(

Revision history for this message
- (nicoforce) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.