Under some circumstances, a netbios name query will reveal the PC name. Note that some people could consider this an attack so use it with caution.

It also seems, that on some Windows boxes, gethostbyaddr() sends such a request (and indeed, returns the response string) if it's not successfully resolved the host by DNS. I don't know why this is or how to stop it.

Note that this is trivially faked, so should not be relied on for anything.

Slarty