I am trying to get LAN connected server's host names, so I can run query over these servers with hostname:

```
import socket
IP_RANGE = 10
hostNamesList = []
socket.setdefaulttimeout(0.1)
for i in range(IP_RANGE):
    try:
        hostNamesList.append(socket.gethostbyaddr("192.168.1.%s" % i)[0])
    except:
        pass

print hostNamesList

```

The above code takes several minutes to scan selected IP range, even if I set the timeout to 0.1 seconds.

Is there anything that I did wrong, or any way(s) to get host names faster?