DnsCache.storeNegative
void storeNegative(scope const(char)[] hostname, uint ttlSeconds = 0,
DnsError error = DnsError.NONAME) @trustedStore a negative (error) result in the cache.
Prevents repeated lookups for hostnames that do not exist or are experiencing non-recoverable errors.
Parameters
hostname | Hostname that failed to resolve. |
ttlSeconds | Negative cache TTL. Uses negativeTtl from config when zero. |
error | The DNS error code. Defaults to NONAME. |