Documentation
¶
Index ¶
- func AnswersByType(msg *dns.Msg, qtype uint16) []dns.RR
- func BackoffJitter(min, max time.Duration) time.Duration
- func ExponentialBackoff(events int, delay time.Duration) time.Duration
- func FQDNToRegistered(fqdn, registered string, callback func(domain string) bool)
- func QueryMsg(name string, qtype uint16) *dns.Msg
- func RegisteredToFQDN(registered, fqdn string, callback func(domain string) bool)
- func RemoveLastDot(name string) string
- func ReverseMsg(addr string) *dns.Msg
- func SetupOptions() *dns.OPT
- func TCPExchange(req types.Request, timeout time.Duration)
- func TruncatedExponentialBackoff(events int, delay, max time.Duration) time.Duration
- func WalkMsg(name string, qtype uint16) *dns.Msg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnswersByType ¶
AnswersByType returns only the answers from the DNS Answer section matching the provided type.
func BackoffJitter ¶
BackoffJitter returns a random Duration between the provided min and max parameters.
func ExponentialBackoff ¶
ExponentialBackoff returns a Duration equal to 2^events multiplied by the provided delay and jitter added equal to [0,delay).
func FQDNToRegistered ¶
FQDNToRegistered executes the provided callback routine for domain names, starting with the FQDN to the registered domain name, removing one label with each execution. The process stops if the callback routine returns true, indicating completion.
func RegisteredToFQDN ¶
RegisteredToFQDN executes the provided callback routine for domain names, starting with the registered domain name to the FQDN, adding one label with each execution. The process stops if the callback routine returns true, indicating completion.
func RemoveLastDot ¶
RemoveLastDot removes the '.' at the end of the provided FQDN.
func ReverseMsg ¶
ReverseMsg generates a message used for a reverse DNS query.
func SetupOptions ¶
SetupOptions returns the EDNS0_SUBNET option for hiding our location.
func TruncatedExponentialBackoff ¶
TruncatedExponentialBackoff returns a Duration equal to ExponentialBackoff with a provided maximum Duration used to truncate the result.
Types ¶
This section is empty.