RFC: getaddrinfo: skip DNS resolution for numeric addresses?
Denys Vlasenko
vda.linux at googlemail.com
Mon Apr 4 01:16:45 UTC 2011
Hi,
I noticed that getaddrinfo will faithfully perform
DNS resolution on hostnames such as "1.2.3.4"
This is problematic in the case when user uses numeric IPs
_exactly_ because he knows that his DNS resolution
does not work. He'll have nasty surprise: numeric
addresses won't work either!
I added a workaround to busybox which detects this case.
However, I think this should be done on libc level
for all users of getaddrinfo.
I can code it up.
Does anyone object to this?
--
vda
More information about the uClibc
mailing list