openconnect: vpnc does not interoperate with resolvconf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
network-manager-openconnect (Ubuntu) |
Expired
|
Medium
|
Unassigned | ||
vpnc (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
Binary package hint: openconnect
I have to connect to multiple VPNs, even at the same time, so I've installed the resolvconf package to manage the resolv.conf file. Many applications, such as dhclient etc., in Ubuntu recognize that resolvconf is installed and will proceed accordingly. However, openconnect does not seem to recognize this and removes the /etc/resolv.conf symlink (which it's supposed to be to get resolvconf package to work). It also doesn't appear to set the DNS environment using resolvconf as it should.
What would be really, really nice is that if openconnect (or any utility that needs to change /etc/resolv.conf but this bug is about openconnect) provided a shell script that managed /etc/resolv.conf, rather than putting that handling into the code itself. This would not be a big deal performance-wise since it only happens at connection establishment, and it gives a lot of flexibility to manage these files as needed.
summary: |
- openconnect does not interoperate with resolvconf + openconnect: vpnc does not interoperate with resolvconf |
Changed in vpnc (Ubuntu): | |
status: | Confirmed → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
OpenConnect doesn't touch /etc/resolv.conf at all. This is probably vpnc-script, which in Ubuntu may be shipped as part of the vpnc package, or may be in a separate vpnc-script package.
The one shipped with vpnc is hopelessly out of date and doesn't work with current kernels; Ubuntu *should* be shipping the one from http:// git.infradead. org/users/ dwmw2/vpnc- scripts. git
But I'm slightly confused; both versions should both use /sbin/resolvconf by preference, before falling back to touching the file manually. Does resolvconf provide the /sbin/resolvconf executable? That's what vpnc-script checks for.