Issue with CISCO_DEF_DOMAIN and invalid resolv.conf

Raghavendra Prabhu me at
Sun Aug 7 08:17:28 PDT 2016

Actually, I see a fix sent two days back,

I believe that should fix it even though it picks only the first one
in domain list.

(Rest of the domains except the first can be probably be skipped since
resolv.conf states "If more than one instance of these keywords is
present, the last instance wins.").

Sorry for the noise.


On Sun, Aug 7, 2016 at 4:03 PM, Raghavendra Prabhu <me at> wrote:
> 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>
>  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.
> Regards,
> --
> Raghavendra
> GPG Id : 0xD72BE977

More information about the openconnect-devel mailing list