Created attachment 149811 [details] patch-vpnc-script The vpnc-scripts package disables use of resolvconf explicitly on FreeBSD. I believe this is probably because the built-in resolver in libc doesn't support many fancy features. However, resolvconf does work fine, and in conjunction with a different local resolver (such as unbound or dnsmasq) resolvconf can correctly manage things like split DNS. The patch enables use of resolvconf on FreeBSD and should probably go upstream as well.
Auto-assigned to maintainer zi@FreeBSD.org
Chatting about this with the vpnc-scripts dev.
I think the reason it was disabled on FreeBSD was probably because the contributor couldn't easily test it and it looked different, so they erred on the side of caution. Apologies; I should have been paying more attention and made sure at the time. If you lot are going to tell me it's fine to use it on all versions of FreeBSD then I'm certainly happy with that. Please can I see a Signed-off-by: tag for the patch?
(In reply to dwmw2 from comment #3) No problem at all. I have certainly used it on 10.x and head with vpnc-scripts personally (both with openconnect and vpnc). It looks like all versions of FreeBSD that support resolvconf use the same version, so you should be fine to enable it on FreeBSD unconditionally. It is actually an external package called openresolv which is hosted here: http://roy.marples.name/projects/openresolv/index
To be clear, you can use 'Signed-off-by: John Baldwin <jhb@FreeBSD.org>'.
http://git.infradead.org/users/dwmw2/vpnc-scripts.git/commitdiff/befa4afdf0a Thanks. Apologies for the delay.
A commit references this bug: Author: zi Date: Thu Mar 12 15:36:22 UTC 2015 New revision: 381107 URL: https://svnweb.freebsd.org/changeset/ports/381107 Log: - Enable use of resolveconf PR: 195359 Submitted by: John Baldwin <jhb@FreeBSD.org> Changes: head/sysutils/vpnc-scripts/Makefile head/sysutils/vpnc-scripts/files/ head/sysutils/vpnc-scripts/files/patch-vpnc-script
(In reply to dwmw2 from comment #6) No problem. Thanks!