Discover Packages
github.com/mozership/probe
actions
dns
package
Version:
v1.26.0
Opens a new window with list of versions in this module.
Published: Oct 12, 2026
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package dns is the dns action: it asks a DNS server for the records of a
name, and returns what the server answered.
Keeps returns the kinds of guard the dns action keeps to: a query writes
nothing, and it is sent only to a server the guard allows.
Params returns the keys the dns action takes in with.
Request sends the query that with describes and returns the step's result.
A server that answers with an error, such as NXDOMAIN, is a result for the
step's test to check, and a server that does not answer is an error.
RunStep sends the query under the guard of the run, which may allow only
some hosts.
WithGuard has the query sent only to a server the guard of the run allows.
type Req struct {
Name string `map:"name"`
Type string `map:"type"`
Server string `map:"server"`
Protocol string `map:"protocol"`
Timeout string `map:"timeout"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.