Documentation
¶
Index ¶
- func AddrByHostName(hostname string) (*net.IP, error)
- func AddrsByHostName(hostname string) ([]*net.IP, error)
- func HostNameByIP(ip net.IP) (string, error)
- func HostNamesByIP(ip net.IP) ([]string, error)
- func NameServersByHostName(hostname string) ([]*net.NS, error)
- func NetworkByHost(host string) (*net.IP, error)
- type Func
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddrByHostName ¶ added in v1.0.0
AddrByHostName resolves the ip address of the provided hostname.
func AddrsByHostName ¶
AddrsByHostName returns all ip addresses found for the provided hostname.
func HostNameByIP ¶ added in v1.0.0
HostNameByIP returns the hostname for the provided ip address.
func HostNamesByIP ¶
HostNamesByIP returns all hostnames found for the provided ip address.
func NameServersByHostName ¶
NameServersByHostName looks up all nameservers for the provided hostname.
Types ¶
Click to show internal directories.
Click to hide internal directories.