Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在给定 IP 地址的情况下,是否有更快或批量的替代 socket.gethostbyaddr() 来确定主机?谢谢你。
可以使用dnspython模块 [1],查看 from_address 函数。
注意:它是线程安全的。
[1] http://www.dnspython.org/