faster or batch alternative to python's socket.gethostbyaddr()?

1.3k Views Asked by At

Is there a faster or batch alternative to socket.gethostbyaddr() for the purpose of determining the host, given an IP address? Thank you.

1

There are 1 best solutions below

0
On BEST ANSWER

You can use dnspython module [1], look from_address function.

Note: It's thread safe.

[1] http://www.dnspython.org/