문제

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

도움이 되었습니까?

해결책

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

Note: It's thread safe.

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top