DNS Resolver using Java sockets only