lookup

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddrByHostName added in v1.0.0

func AddrByHostName(hostname string) (*net.IP, error)

AddrByHostName resolves the ip address of the provided hostname.

func AddrsByHostName

func AddrsByHostName(hostname string) ([]*net.IP, error)

AddrsByHostName returns all ip addresses found for the provided hostname.

func HostNameByIP added in v1.0.0

func HostNameByIP(ip net.IP) (string, error)

HostNameByIP returns the hostname for the provided ip address.

func HostNamesByIP

func HostNamesByIP(ip net.IP) ([]string, error)

HostNamesByIP returns all hostnames found for the provided ip address.

func NameServersByHostName

func NameServersByHostName(hostname string) ([]*net.NS, error)

NameServersByHostName looks up all nameservers for the provided hostname.

func NetworkByHost added in v1.0.0

func NetworkByHost(host string) (*net.IP, error)

NetworkByHost returns the network address for the provided hostname.

Types

type Func added in v1.0.0

type Func func(string) error

Jump to

Keyboard shortcuts

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