Issue with CISCO_DEF_DOMAIN and invalid resolv.conf

Raghavendra Prabhu me at
Sun Aug 7 08:03:47 PDT 2016


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>
 Date:   Thu Aug 6 11:34:01 2015 +0100

     Strip commas from DNS search paths

     Based on a patch from Joe Barnett <jbarnett at>

     Signed-off-by: David Woodhouse <David.Woodhouse at>

'<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:

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.

GPG Id : 0xD72BE977

More information about the openconnect-devel mailing list