Local name resolution fails intermittently when connected to VPN
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager-openconnect (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When I connect to my company Cisco ASA using the official Any Connect VPN client, my system receives a new DNS server which is on the local network I'm connecting to with the VPN, which is 192.168.240.250. Once the VPN connection is established, all DNS queries are directed to this server and hence I can resolve both public names (like google.com) and local names (like myserver.
When I use the Network Manager openconnect plugin to connect to the same VPN, this works the same, but intermittently I get DNS resolution errors for local names, just like if the query were directed to the wrong server (perhaps the ISP DNS server?) or if some kind of caching provided by systemd-resolved were returning stale failed results.
At first I thought I was hitting:
https:/
however, I learnt that Ubuntu 20.04 is not using dnsmasq, so the problem must not be the same.
Then I found:
https:/
which however is marked as fixed in Zesty and Artful. Some people there suggest to change the default priority of the DNS server for the VPN connection, but this does not fix the problem for me.
In comment #110 (https:/
So far, the only workaround I could find, whenever DNS queries start failing, is to issue a systemd-resolved restart:
sudo systemctl restart systemd-
After I do this, resolution of local names start to work again.
Some days I have to do this a couple of times in the whole day, some others I have to issue it multiple times within few minutes...
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: network-
ProcVersionSign
Uname: Linux 5.4.0-53-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Mon Nov 23 16:06:42 2020
InstallationDate: Installed on 2020-10-05 (48 days ago)
InstallationMedia: Kubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
SourcePackage: network-
UpgradeStatus: No upgrade log present (probably fresh install)