resolver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig

func GetConfig() (*dns.ClientConfig, error)

getConfig returns the DNS configuration from the Linux resolv.conf file.

func NewResolver

func NewResolver(d *wiredialer.WireDialer, localDNS bool) (*resolver, error)

NewResolver creates a new Resolver.

Types

type Resolver

type Resolver interface {
	LookupHost(ctx context.Context, host string) ([]string, error)
}

Jump to

Keyboard shortcuts

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