socket.gethostbyaddr() doesn't show existing aliases

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sibylle Koczian

    socket.gethostbyaddr() doesn't show existing aliases

    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_e x, 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,
    Koczian

    --
    Dr. Sibylle Koczian
    Universitaetsbi bliothek, Abt. Naturwiss.
    D-86135 Augsburg

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

Working...