Documentation ¶
Overview ¶
Package dnsprobe implements a DNS probe.
Index ¶
- func A(a []string) func(*DnsProber)
- func Alert(fn prober.AlertFn) func(*DnsProber)
- func CNAME(cname string) func(*DnsProber)
- func Desc(desc string) func(*DnsProber)
- func MX(mx []*net.MX) func(*DnsProber)
- func NS(ns []*net.NS) func(*DnsProber)
- func Name(name string) func(*DnsProber)
- func New(target string, options ...func(*DnsProber)) *prober.Probe
- func NewWithGeneric(target string, genericOpts []prober.Option, options ...func(*DnsProber)) *prober.Probe
- func TXT(txt []string) func(*DnsProber)
- type DnsProber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Alert ¶
Alert sets a custom alerting function.
If Alert is not called, the probes.SendAlertEmail function is called.
func NewWithGeneric ¶
func NewWithGeneric(target string, genericOpts []prober.Option, options ...func(*DnsProber)) *prober.Probe
NewWithGeneric returns a new instance of the DNS probe with specified options.
NewWithGeneric passes through specified prober.Options, after applying the dnsprobe-specific options.
Types ¶
type DnsProber ¶
type DnsProber struct { Target string // host to probe // contains filtered or unexported fields }
DnsProber probes a target host's DNS records.
func (*DnsProber) Alert ¶
Alert calls the prober.AlertFn for the prober.
If no prober.AlertFn was set with the Alert() option, probes.SendAlertEmail is used by default.
Click to show internal directories.
Click to hide internal directories.