By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,841 Members | 1,634 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,841 IT Pros & Developers. It's quick & easy.

socket.gethostbyaddr() doesn't show existing aliases

P: n/a
Hello all,

the documentation for the socket module says that gethostbyaddr should
return the primary host name and alternative host names if there are
any. But the alias list is empty even in cases where I know aliases
exist. I can get them using gethostbyname_ex, but that only works with
names, not with IP addresses, and I want to resolve both sorts.

I'm using Python 2.3.2 on Windows NT4, SP6.

What's wrong?

Thank you,

Dr. Sibylle Koczian
Universitaetsbibliothek, Abt. Naturwiss.
D-86135 Augsburg

Tel.: (0821) 598-2400, Fax : (0821) 598-2410
e-mail : Si*************@Bibliothek.Uni-Augsburg.DE

Jul 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.