resolver

package
v12.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(addrs []string) (*net.Resolver, error)

NewResolver - create a new instance of a dns resolver for plugging into net.DefaultResolver. Addresses should be a list of ip addrs and optional port numbers, separated by colon. For example: 1.2.3.4:53 and 1.2.3.4 are both valid. In the absence of a port number, 53 will be used instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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