Documentation
¶
Overview ¶
Package dnscache provides process-wide cached DNS lookups: PTR records, forward (A/AAAA) records, and forward-confirmed reverse DNS (FCrDNS) composed from the two. Results — including failures — are cached in a shared LRU, and concurrent lookups for the same key coalesce via singleflight, so a given DNS fact costs at most one query per TTL.
Consumers: the parser's reverse_dns enricher (PTR only) and the MatchKnownBot expr helper (FCrDNS).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardConfirmedNames ¶
func ForwardIPs ¶
func PTRRecords ¶
func SetResolver ¶
func SetResolver(r Resolver)
Types ¶
Click to show internal directories.
Click to hide internal directories.