/// <summary> /// Clears the record cache /// </summary> public void ClearCache() { _cache = new DnsCache(); }
/// <summary> /// Clears the record cache /// </summary> public void ClearCache() { _cache = new DnsCache(); _nameserverCache = new NameserverCache(); }
/// <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()); }