Documentation
¶
Overview ¶
Package dnsguard is a DNS forwarder that checks every name a workload looks up against the feeds' domain indicators.
It catches what the egress proxy cannot: software that ignores HTTPS_PROXY still resolves names, and a lookup of a command-and-control domain is the earliest sign of a compromise. Point the workload's resolver at it (/etc/resolv.conf, the task's dnsServers, a pod's dnsConfig).
A refused lookup answers NXDOMAIN, which every client handles. Anything the guard cannot parse is forwarded untouched: it fails open like the proxies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpstreamFromResolvConf ¶
UpstreamFromResolvConf reads the first nameserver in a resolv.conf, so the guard forwards to whatever the host used before it was put in front.
Types ¶
type Guard ¶
type Guard struct {
// Upstream is the resolver lookups go to, host:port.
Upstream string
Rules func() *engine.Set
Verdicts *decide.Engine
Report func(uplink.Event)
Now func() time.Time
}
Guard forwards DNS over UDP.