Documentation
¶
Index ¶
Constants ¶
View Source
const CacheTTL = 12 * time.Hour
CacheTTL is the duration before a domain name resolution is evict form the cache.
Variables ¶
View Source
var ErrHostRejected = errors.New("rejected host")
ErrHostRejected is returned when the host has been flagged as unwanted.
Functions ¶
This section is empty.
Types ¶
type NameResolver ¶
type NameResolver struct {
// contains filtered or unexported fields
}
A NameResolver is used for name resolution.
func (*NameResolver) OverrideHost ¶
func (r *NameResolver) OverrideHost(host string, ip string) error
OverrideHost adds an host override.
Click to show internal directories.
Click to hide internal directories.