reversedns

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LookupAddrFn = net.DefaultResolver.LookupAddr

LookupAddrFn is defined as variable to ease testing

Functions

func GetReverseDns

func GetReverseDns(ipAddr string) ([]string, error)

GetReverseDns returns the hostname for the given IP address as a string.

func GetReverseDnsForIP

func GetReverseDnsForIP(ipAddress net.IP) ([]string, error)

GetReverseDnsForIP returns the reverse DNS for the given IP address as a net.IP.

func GetReverseDnsForIPs added in v0.1.32

func GetReverseDnsForIPs(ips []net.IP) (map[string][]string, error)

GetReverseDnsForIPs returns the reverse DNS for the given IPs addresses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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