Deleting of the resolved DNS parameters done after VPN link is gone
Hello,
I'm using vpnc plugin to connect to my customer VPN, when stopping the VPN, I see the following warning:
nov 23 10:07:01 edoras NetworkManager[1002]: <info> [1637658421.3961] vpn-connection[0x55af2213a750,fa482929-93ee-4c64-bfba-4ee31d70f35f,"CUSTOMER",0]: VPN plugin: state changed: stopping (5)
nov 23 10:07:01 edoras NetworkManager[1002]: <info> [1637658421.3961] vpn-connection[0x55af2213a750,fa482929-93ee-4c64-bfba-4ee31d70f35f,"CUSTOMER",0]: VPN plugin: state changed: stopped (6)
nov 23 10:07:01 edoras NetworkManager[1002]: <info> [1637658421.3966] device (tun0): state change: activated -> unmanaged (reason 'connection-assumed', sys-iface-state: 'external')
nov 23 10:07:01 edoras NetworkManager[1002]: <warn> [1637658421.4064] dns-sd-resolved[3a462baff26d08e7]: send-updates SetLinkDomains@21 failed: GDBus.Error:org.freedesktop.resolve1.NoSuchLink: Link 21 not known
Looking in the /run/systemd/resolve/resolv.conf
and /run/systemd/resolve/stub-resolv.conf
files, I see that the search
option is not removed and still reference the customer ones, so I feel that these two are linked.
The send-updates SetLinkDomains
should be done in the stopping phase, not after the link is gone
Arguably resolved could also drop the search domain by itself when the link is removed