public DnsClientRequest(IPEndPoint dns, IDnsRequest?request = null, IDnsRequestResolver?resolver = null) { Dns = dns; _request = request == null ? new DnsRequest() : new DnsRequest(request); _resolver = resolver ?? new DnsUdpRequestResolver(); }
public ClientDnsRequest(IDnsRequestResolver resolver, IDnsRequest request = null) { this.resolver = resolver; this.request = request == null ? new DefaultDnsRequest() : new DefaultDnsRequest(request); }
public DnsServer(IDnsRequestResolver resolver) { this.resolver = resolver; }
public UdpDnsRequestResolver(IPEndPoint dns, IDnsRequestResolver fallback, int timeout = 5000) { this.dns = dns; this.fallback = fallback; this.timeout = timeout; }
public UdpDnsRequestResolver(IPEndPoint dns, int timeout = 5000) { this.dns = dns; this.fallback = new NullDnsRequestResolver(); this.timeout = timeout; }
public DnsClient(IPAddress ip, int port = Network.DnsDefaultPort, IDnsRequestResolver resolver = null) : this(new IPEndPoint(ip, port), resolver) { }
public DnsClient(IPEndPoint dns, IDnsRequestResolver resolver = null) { _dns = dns; _resolver = resolver ?? new DnsUdpRequestResolver(new DnsTcpRequestResolver()); }
public DnsClient(IDnsRequestResolver resolver) { this.resolver = resolver; }
public DnsClient(string ip, int port = Definitions.DnsDefaultPort, IDnsRequestResolver resolver = null) : this(IPAddress.Parse(ip), port, resolver) { }
public DnsClientRequest(IPAddress ip, int port = Definitions.DnsDefaultPort, IDnsRequest request = null, IDnsRequestResolver resolver = null) : this(new IPEndPoint(ip, port), request, resolver) { }