Documentation ¶
Overview ¶
Package dns implements a DNS prober. It sends UDP DNS queries to a list of targets and reports statistics on queries sent, queries received, and latency experienced.
This prober uses the DNS library in /third_party/golang/dns/dns to construct, send, and receive DNS messages. Every message is sent on a different UDP port. Queries to each target are sent in parallel.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Exchange(*dns.Msg, string) (*dns.Msg, time.Duration, error) // contains filtered or unexported methods }
Client provides a DNS client interface for required functionality. This makes it possible to mock.
Click to show internal directories.
Click to hide internal directories.