title: get local hostname from ip adress i.e. 192.168.1.x python 3 on windows 10
body: <p>currently using:-
      import socket</p>
  
  <pre><code>hostip='192.168.1.62'
  getip=socket.getaddrinfo(hostip,port=22)
  </code></pre>
  
  <p>returns info but does not include Hostname.
  seems to be a local DNS problem from other discussions.
  The local router finds all hostnames.</p>