Discover Packages
github.com/elmasy-com/elmasy
pkg
protocols
dns
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: May 29, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
dns
Expand ▾
Collapse ▴
Documentation
¶
The number of tries in case of error.
Probe checks whether DNS protocol is available on network on ip:port.
This function do a simple query with "elmasy.com."/"A".
network must be "tcp", "tcp-tls" or "udp".
QueryA returns net.IP structs of the answers.
Returns nil in case of error.
This function retries the query in case of error, up to MAX_RETRIES.
QueryAAAA returns net.IP structs of the answers.
Returns nil in case of error.
This function retries the query in case of error, up to MAX_RETRIES.
QueryTXT returns the answer as a string slice.
Returns nil in case of error.
This function retries the query in case of error, up to MAX_RETRIES.
type MX struct {
Preference int
Exchange string
}
QueryMX returns MX structs of the answers.
Returns nil in case of error.
This function retries the query in case of error, up to MAX_RETRIES.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.