DNS domain search paths not updated when VPN started
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
network-manager-openvpn (Ubuntu) |
Confirmed
|
High
|
Unassigned | ||
systemd (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
I connect to work with openvpn through network-
In the last few versions of Ubuntu I used, this all worked fine. In Ubuntu 17.10 (fresh install, not upgrade) I can access hosts on both my VPN network and the internet, BUT I have to use FQDN for my VPN network hosts: the updates to the DNS search path provided by my VPN DHCP server are never being applied.
Investigating the system I see that /etc/resolv.conf is pointing to /run/systemd/
# This file is managed by man:systemd-
#
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.
nameserver 127.0.0.53
search home
In previous versions of Ubuntu, where NetworkManager controlled the resolver not systemd, /etc/resolv.conf pointed to /run/NetworkMan
$ cat /run/NetworkMan
# Generated by NetworkManager
search internal.mycorp.com other.mycorp.com home
nameserver 127.0.1.1
However this file isn't being used, and also there's no dnsmasq running on the system so if I switch my /etc/resolv.conf to point to this file instead, then all lookups fail.
Strangely, if I look at the systemd-resolv status I see that in theory systemd-resolve does seem to know about the proper search paths:
$ systemd-resolve --status
...
Link 3 (tun0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no
DNS Servers: 10.3.0.10
DNS Domain: ~internal.
but for whatever reason the search domains are not getting put into the resolv.conf file:
$ host mydesk
;; connection timed out; no servers could be reached
$ host mydesk.
mydesk.
(BTW, the timeout in the failed attempt above takes 10s: it is SUPER frustrating when all your host lookups are taking that long just to fail).
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: systemd 234-2ubuntu12
ProcVersionSign
Uname: Linux 4.13.0-16-generic x86_64
ApportVersion: 2.20.7-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME
Date: Sun Oct 22 15:08:57 2017
InstallationDate: Installed on 2017-10-21 (1 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
MachineType: System manufacturer System Product Name
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
SystemdDelta:
[EXTENDED] /lib/systemd/
[EXTENDED] /lib/systemd/
2 overridden configuration files found.
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/02/2014
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 2101
dmi.board.
dmi.board.name: M5A78L-M/USB3
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: Rev X.0x
dmi.chassis.
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.
dmi.modalias: dmi:bvnAmerican
dmi.product.family: To Be Filled By O.E.M.
dmi.product.name: System Product Name
dmi.product.
dmi.sys.vendor: System manufacturer
tags: | added: rls-bb-incoming |
Changed in network-manager (Ubuntu): | |
importance: | Undecided → High |
Changed in network-manager-openvpn (Ubuntu): | |
importance: | Undecided → High |
tags: | added: id-5a7491099adc12270ee9c94d |
tags: | removed: rls-bb-incoming |
tags: | added: rls-bb-notfixing |
tags: | added: ddstreet |
tags: | removed: ddstreet |
tags: | added: fr-13 |
Changed in systemd (Ubuntu): | |
importance: | High → Low |
network-manager has resolved integration and it does push search domains to resolved and they are updated in the /etc/resolv.conf.
This should continue to work in 17.10. Hence marking this bug affect network-manager and network- manager- openvpn