cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: [PATCH] Curl_gethostname() may or may not return the hostname as a FQDN

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 21 Aug 2011 15:00:00 +0200 (CEST)

On Thu, 11 Aug 2011, Steve Holme wrote:

> I have had an attempt at trying to use Curl_resolv() and
> Curl_resolv_timeout() but unfortunately the CANONICAL name is always empty.
> It would appear that the underlying Curl_resolver_getaddrinfo() does not set
> the ai_flags to include: AI_CANONNAME :(

(sorry for the major delay)

Argh, that's correct. We don't have anything in libcurl before this that
needs that feature.

I wonder how large percentage of use cases this will work for anyway. Lots of
machines today that speak SMTP will not be able to resolve their own names.

Is it really worth persuing or should we work on better documenting how a
client should do to provide the full host name itself?

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2011-08-21