removed DnsEndPoint dependency.