Subject: Re: ares_set_servers_csv and compressed IPv6 string

Re: ares_set_servers_csv and compressed IPv6 string

From: Steinar H. Gunderson <sesse_at_google.com>
Date: Thu, 9 May 2013 10:57:39 +0200

2013/5/9 Timothy J Fontaine <tjfontaine_at_gmail.com>:
> When passing in a compressed IPv6 string like "2001:4860:4860::8888" to
> ares_set_servers_csv everything to the right of the first ":" in "::" is
> stripped and interpreted as part of the port for the entry.
>
> Is the intended behavior to require an IPv6 address in uncompressed
> notation, or is this merely a bug?

Without knowing the c-ares internals here, the normal way of
specifying IPv6 address + port is with brackets, like this:
[2001:4860:4860::8888]:53. So I'd guess this is a bug.

/* Steinar */

-- 
Software Engineer, Google Switzerland
Received on 2013-05-09