cURL / Mailing Lists / curl-library / Single Mail


Re: a small patch for hostip6.c

From: Andy Tai <>
Date: Mon, 17 Oct 2011 13:40:44 -0700

It was on an Ubuntu 10.10 x86-64 machine; the address string was ""
but glibc nevertheless invoked getaddrinfo(). The machine has gcc 4.4.5 and
glibc version EGLIBC 2.12.1

Daniel asked:
>Andy, are you saying that your test target makes an actual DNS resolve of
>IP-only string? And if so, what exactly does it try to resolve and what is

On Fri, Oct 14, 2011 at 3:25 PM, Andy Tai <> wrote:

> Hi, I hope the attached diff for lib/hostip6.c can be considered. In
> lib/hostip4.c numerical IP addresses can be detected and a trip to the DNS
> resolver is avoided; however this is not the case in hostip6.c. The
> attached patch makes it the same, at least for IPv4 numerical addresses.

Andy Tai,, Skype: licheng.tai
Year 2011 民國100年

List admin:
Received on 2011-10-17