[Bug 1990141] Re: Split-DNS not working in vpnc-scripts after renaming systemd-resolve to resolvectrl
Heinrich Schuchardt
1990141 at bugs.launchpad.net
Tue Sep 20 14:08:45 UTC 2022
Hello Michael,
thank you for reporting the issue. According to your description the
problem is with package vpnc-scripts and not ubiquity.
Could you, please, describe how to set up and test a split DNS scenario.
Best regards
Heinrich
** Changed in: ubiquity (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubiquity in Ubuntu.
https://bugs.launchpad.net/bugs/1990141
Title:
Split-DNS not working in vpnc-scripts after renaming systemd-resolve
to resolvectrl
Status in ubiquity package in Ubuntu:
Incomplete
Bug description:
Setting up a VPN with openconnect and split DNS is not working
correctly after dist-upgrade from 21.10 to 22.04. The vpnc-script
still refers to "systemd-resolve" to check for systemd-resolved and
fails due to the name change to "resolvectl". Thus the DNS servers are
written into the resolve.conf and thus breaks the split DNS
functionality.
As a quick workaround it was sufficient to create a symlink:
sudo ln /usr/bin/resolvectl /usr/bin/systemd-resolve
As fix I would suggest to update the vpnc-script to use "resolvectl".
Source: /usr/share/vpnc-scripts/vpnc-script line 143:
grep '^hosts' /etc/nsswitch.conf 2>/dev/null|grep resolve >/dev/null 2>&1 && command systemd-resolve --status >/dev/null 2>&1
if [ $? = 0 ];then
RESOLVEDENABLED=1
else
RESOLVEDENABLED=0
fi
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubiquity (not installed)
ProcVersionSignature: Ubuntu 5.15.0-47.51-generic 5.15.46
Uname: Linux 5.15.0-47-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Mon Sep 19 14:35:43 2022
InstallCmdLine: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/kubuntu.seed boot=casper maybe-ubiquity quiet splash ---
InstallationDate: Installed on 2019-01-12 (1345 days ago)
InstallationMedia: Kubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.2)
ProcEnviron:
LANGUAGE=
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: ubiquity
Symptom: installation
UpgradeStatus: Upgraded to jammy on 2021-12-03 (290 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1990141/+subscriptions
More information about the foundations-bugs
mailing list