dns

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetworkLabel  = "network"
	HostLabel     = "host"
	ResolverLabel = "resolver"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	CustomResolver bool
	Host           string
	Network        string
}

type DNS

type DNS struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) *DNS

func (*DNS) Do

func (dns *DNS) Do(ctx context.Context)

Jump to

Keyboard shortcuts

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