[RFC PATCH] getaddrinfo: Force name resolution for AI_CANONNAME [BZ# 24182]
Florian Weimer
fweimer@redhat.com
Sat Feb 9 09:15:00 GMT 2019
* Heitor R. Alves de Siqueira:
> This patch forces name resolution if the AI_CANONNAME flag is set. Even
> if inet_aton_exact() identifies the input name as being a valid IPv4
> address, we will try name resolution in case it's a valid hostname. If
> no hostname is found after resolution, the input name is still copied
> to the ai_canonname field.
This is not correct because it sends queries for names such as 192.0.2.1
to the DNS root servers.
I'm sorry, but I still don't see how the general idea is useful. Which
applications benefit if getaddrinfo returns in ai_canonname which will
most likely resolve to a completely different set of addresses?
Do you have a bug report that requests a behavior change in this area?
Which problem is this trying to address?
Thanks,
Florian
More information about the Libc-alpha
mailing list