netutils

package
v0.267.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DnsLookupIpV4 added in v0.260.0

func DnsLookupIpV4(ctx context.Context, fqdn string) (ipV4Addresses []string, err error)

func DnsReverseLookup added in v0.261.0

func DnsReverseLookup(ctx context.Context, ipAddress string) (fqdns []string, err error)

func IsTcpPortOpen

func IsTcpPortOpen(hostnameOrIp string, port int, verbose bool) (isOpen bool, err error)

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 MustDnsLookupIpV4(ctx context.Context, fqdn string) (ipV4Addresses []string)

func MustDnsReverseLookup added in v0.261.0

func MustDnsReverseLookup(ctx context.Context, ipAddress string) (fqdn []string)

func MustIsTcpPortOpen

func MustIsTcpPortOpen(hostnameOrIp string, port int, verbose bool) (isOpen bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL