Python 通过 IP 地址查找域上的计算机名称

时间:2021-07-03 19:47:02

标签: python

我正在尝试获取我们实验室域中的服务器名称。 尝试执行以下操作时 - 它说 socket.herror: [Errno 11004] host not found :

socket.gethostbyaddr("10.101.31.211")

有什么想法吗?

0 个答案:

没有答案