Documentation ¶
Overview ¶
Package srvdns handles all the DNS stuff.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheEntry ¶
type CacheEntry struct {
// contains filtered or unexported fields
}
CacheEntry is a single cached entry
type CacheList ¶
CacheList is the list of all caches entries.
var Cache CacheList
Cache of spoofing actions.
We don't cache the actual DNS responses − that's the resolver's job. We just cache the action taken. That's enough and saves some time in processing regexps and such
func (*CacheList) PurgeExpired ¶
PurgeExpired removes old cache items.
Click to show internal directories.
Click to hide internal directories.