reversedns

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2025 License: Apache-2.0 Imports: 5 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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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