resolve the IP using dnsjava