Documentation
¶
Index ¶
- func DnsLookupIpV4(ctx context.Context, fqdn string) (ipV4Addresses []string, err error)
- func DnsReverseLookup(ctx context.Context, ipAddress string) (fqdns []string, err error)
- func IsTcpPortOpen(hostnameOrIp string, port int, verbose bool) (isOpen bool, err error)
- func MustDnsLookupIpV4(ctx context.Context, fqdn string) (ipV4Addresses []string)
- func MustDnsReverseLookup(ctx context.Context, ipAddress string) (fqdn []string)
- func MustIsTcpPortOpen(hostnameOrIp string, port int, verbose bool) (isOpen bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DnsLookupIpV4 ¶ added in v0.260.0
func DnsReverseLookup ¶ added in v0.261.0
func IsTcpPortOpen ¶
Check if a TCP port on the given hostnameOrIp with given portNumber is open. The evaluation is done by opening a TCP socket and close it again.
func MustDnsLookupIpV4 ¶ added in v0.260.0
func MustDnsReverseLookup ¶ added in v0.261.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.