I want to diretly communicate with a dns server via winsock. Currently i complete this task by batching a file with a nslookup in it.

I also want to find out how to look up whos logged on (who owns the remote address, like the way web server will tell you if they provide that service.