Python lookup hostname from IP with 1 second timeout

Posted by ensnare on Stack Overflow See other posts from Stack Overflow or by ensnare
Published on 2010-04-04T20:20:27Z Indexed on 2010/04/04 20:23 UTC
Read the original article Hit count: 212

Filed under:
|
|
|
|

How can I look up a hostname given an IP address? Furthermore, how can I specify a timeout in case no such reverse DNS entry exists? Trying to keep things as fast as possible. Or is there a better way? Thank you!

© Stack Overflow or respective owner

Related posts about python

Related posts about beginner