Question

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

Était-ce utile?

La solution

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

Note: It's thread safe.

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top