dig

package
v0.0.282 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FixNameError

func FixNameError(err error, ns string) error

FixNameOrError cleans up resolver errors; the Go stdlib doesn't notice when you swap out the host its resolver connects to, and prints the resolv.conf resolver in error messages, which is super confusing for users.

func New

func New() *cobra.Command

func ResolverForOrg

func ResolverForOrg(ctx context.Context, c *agent.Client, org *api.Organization) (*net.Resolver, string, error)

ResolverForOrg takes a connection to the wireguard agent and an organization and returns a working net.Resolver for DNS for that organization, along with the address of the nameserver.

Types

This section is empty.

Jump to

Keyboard shortcuts

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