Run repeated DNS queries against a specific cache or the first one named in /etc/resolv.conf
and emit success/error metrics.
dns-canary is configured via the environment. The variables it looks for:
NAMES
: a,
-separated list of names to query forINTERVAL
: how often to query each name inNAMES
, needs to be acceptable fortime.ParseDuration
SERVER
: if specified, use the named server at<ip>:<port>
. If unspecified, the first server in/etc/resolv.conf
is used