DnsCache.lookupEntry

const(DnsCacheEntry) * lookupEntry(scope const(char)[] hostname) @trusted

Look up a hostname and return the cache entry (including error).

Unlike lookup, this returns the full entry for negative cache inspection.

Parameters

hostnameHostname to look up.

Returns

Pointer to the cache entry, or null when not found or expired.