0

I`m trying to get the name of a server in our lab domain. When trying to execute the below - it says socket.herror: [Errno 11004] host not found :

socket.gethostbyaddr("10.101.31.211")

Any ideas?

TheWiz
  • 41
  • 4
  • is [this](https://stackoverflow.com/questions/19169412/python-sockets-gethostbyaddr-reverse-dns-lookup-failure) helps? – Yoav Ben Haim Jul 03 '21 at 20:18
  • or this - https://stackoverflow.com/questions/7832264/difficulty-using-pythons-socket-gethostbyaddr – Doyousketch2 Jul 03 '21 at 20:22
  • Nope....still the same...I am lost...maybe it is not doable? to get the remote server name? i mean how hard is it? – TheWiz Jul 03 '21 at 20:43
  • If there is no problem, would it be possible that this is a valid IP address with no hostname, in which it would obviously have a socket.herror. Did you check that? – NewCoder18 Jul 03 '21 at 22:46

0 Answers0