dnsutil

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDnsName

func CheckDnsName(s string, allowUppercase bool, allowWildcard bool) error

Check that given string represents a valid DNS name according to RFC1123; allowUppercase is self-explanatory; allowWildcard means that the first DNS label may be an asterisk (*).

func Lookup

func Lookup(host string, serverAddress string, serverPort uint16) ([]string, error)

Lookup a DNS name on the specified DNS server, and return all IP addresses; returned slice of addresses will be nil if host was not found; if host is an IP address, it will be returned as such; err will be set for all other error situations.

Types

This section is empty.

Jump to

Keyboard shortcuts

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