Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BogonResolver ¶
BogonResolver is a bogon aware resolver. When a bogon is encountered in a reply, this resolver will return an error.
Deprecation warning ¶
This resolver is deprecated. The right thing to do would be to check for bogons right after a domain name resolution in the nettest.
func (BogonResolver) LookupHost ¶
LookupHost implements Resolver.LookupHost
type CacheResolver ¶
type CacheResolver struct { ReadOnly bool model.Resolver // contains filtered or unexported fields }
CacheResolver is a resolver that caches successful replies.
func (*CacheResolver) Get ¶
func (r *CacheResolver) Get(domain string) []string
Get gets the currently configured entry for domain, or nil
func (*CacheResolver) LookupHost ¶
LookupHost implements Resolver.LookupHost
func (*CacheResolver) Set ¶
func (r *CacheResolver) Set(domain string, addresses []string)
Set allows to pre-populate the cache
type SaverDNSTransport ¶
type SaverDNSTransport struct { model.DNSTransport Saver *trace.Saver }
SaverDNSTransport is a DNS transport that saves events
type SaverResolver ¶
SaverResolver is a resolver that saves events
func (SaverResolver) LookupHost ¶
LookupHost implements Resolver.LookupHost