dns

package
v0.20.53 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RefCountingResolver added in v0.19.167

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

func (*RefCountingResolver) AddHostname added in v0.19.167

func (self *RefCountingResolver) AddHostname(s string, ip net.IP) error

func (*RefCountingResolver) Cleanup added in v0.19.167

func (self *RefCountingResolver) Cleanup() error

func (*RefCountingResolver) RemoveHostname added in v0.19.167

func (self *RefCountingResolver) RemoveHostname(s string) error

type Resolver

type Resolver interface {
	AddHostname(string, net.IP) error
	RemoveHostname(string) error
	Cleanup() error
}

func NewDnsServer

func NewDnsServer(addr string) Resolver

func NewHostFile

func NewHostFile(path string) Resolver

func NewRefCountingResolver added in v0.19.167

func NewRefCountingResolver(resolver Resolver) Resolver

func NewResolver

func NewResolver(config string) Resolver

Jump to

Keyboard shortcuts

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