/// <summary>
 ///   Provides a new instance with custom root server hints
 /// </summary>
 /// <param name="resolverHintStore"> The resolver hint store with the IP addresses of the root server hints</param>
 public RecursiveDnsResolver(IResolverHintStore resolverHintStore = null)
 {
     _resolverHintStore          = resolverHintStore ?? new StaticResolverHintStore();
     IsResponseValidationEnabled = true;
     QueryTimeout        = 2000;
     MaximumReferalCount = 20;
 }
 public DnsSecValidator(IInternalDnsSecResolver <TState> resolver, IResolverHintStore resolverHintStore)
 {
     _resolver          = resolver;
     _resolverHintStore = resolverHintStore;
 }
Beispiel #3
0
 /// <summary>
 ///   Provides a new instance using a custom <see cref="DnsClient">DNS client</see>
 /// </summary>
 /// <param name="dnsClient"> The <see cref="DnsClient">DNS client</see> to use </param>
 /// <param name="resolverHintStore"> The resolver hint store with the root DnsKey hints</param>
 public SelfValidatingInternalDnsSecStubResolver(DnsClient dnsClient = null, IResolverHintStore resolverHintStore = null)
 {
     _dnsClient = dnsClient ?? DnsClient.Default;
     _cache     = new DnsCache();
     _validator = new DnsSecValidator <object>(this, resolverHintStore ?? new StaticResolverHintStore());
 }