Hi,
I found the culprit which was avahi-daemon... By disabling
avahi-daemon, gethostbyaddr() (and similarly getnameinfo()) returns
instantaneously. I wonder whether avahi-daemon is enabled by default
in distributions like Debian and Fedora. From this page
(http://avahi.org/wiki/AboutAvahi#Distributions) it seems that avahi
is included in those distributions. Maybe it is a matter of
configuration then.
Regards,
Babis
P.S.: Thank you Rémy for suggesting strace. It is a very helpful command.
On Mon, Dec 12, 2011 at 1:48 PM, Charalampos Nikolaou
Same behavior.
Babis
On Mon, Dec 12, 2011 at 12:16 PM, Stefan de Konink
wrote: Can you also check what happens if you add to /etc/resolv.conf:
options single-request
(Just to exclude it is not some form of glibc 2.10+ dns/firewall issue.)
Stefan