Issue with CISCO_DEF_DOMAIN and invalid resolv.conf
Raghavendra Prabhu
me at rdprabhu.com
Sun Aug 7 08:03:47 PDT 2016
Greetings,
I noticed that in 7.07 release of openconnect the issue with DNS
domains has been fixed.
commit 4aad4c877841fd63acd273d5d84231ca8fca53f4
Author: David Woodhouse <David.Woodhouse at intel.com>
Date: Thu Aug 6 11:34:01 2015 +0100
Strip commas from DNS search paths
Based on a patch from Joe Barnett <jbarnett at marinsoftware.com>
Signed-off-by: David Woodhouse <David.Woodhouse at intel.com>
'<li>Fix handling of multiple DNS search domains with Network Connect.</li>'
Thanks for this. However, this still generates invalid resolv.conf
"nslookup: parse of /etc/resolv.conf failed"
This is because, for multiple domains, it generates like 'domain X
Y Z' which is not correct as per resolv.conf(5). I believe it needs
to be one per line: 'domain X' 'domain Y' .. (parsing logic here:
http://ftp.isc.org/isc/bind9/9.9.0rc1/bind-9.9.0rc1/lib/lwres/lwconfig.c)
While this can be fixed in vpnc script (with some sed), I was
wondering if this needs to be fixed in code. Also, may be rename
CISCO_DEF_DOMAIN to CISCO_DEF_DOMAINS so that scripts are aware that
there may be more than one.
Thanks for the fix.
Regards,
--
Raghavendra
GPG Id : 0xD72BE977
wnohang.net
More information about the openconnect-devel
mailing list