Documentation
¶
Index ¶
Constants ¶
View Source
const Name = "dns"
Name of the probe
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Probe ¶
type Probe struct { FQDN string `json:"fqdn"` // IP or Hostname RecordType string `json:"recordtype" ` // Record Type to Lookup StrictAnswer bool `json:"strictanswer"` // Attend uniquement la valeur NameServer string `json:"nameserver" ` // Send Request to a specified Nameserver }
Probe struct. Json and yaml descriptor are used for json output
func (*Probe) GenerateTStepName ¶
GenerateTStepName return a tstep name if non existent
func (*Probe) Initialize ¶
Initialize Probe struct data
type ProbeAnswer ¶
type ProbeAnswer struct { Answer []string `json:"answer"` TTL int `json:"ttl"` ResponseTime float64 `json:"responsetime"` // Reference Time Unit = Second Class string `json:"class"` Priority int `json:"priority"` Weight int `json:"weight"` Port int `json:"port"` Target string `json:"target"` Proto string `json:"proto"` ProbeInfo probe.ProbeInfo `json:"probeinfo"` }
ProbeAnswer is the returned result after query
func LookupNS ¶
func LookupNS(probe Probe) (*ProbeAnswer, error)
LookupNS returns the DNStask NS records for the given domain name.
Click to show internal directories.
Click to hide internal directories.