change Dns.Resolve to GetHostEntry