dns

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Resolver
}

func NewCache

func NewCache(raw Resolver, maxAge time.Duration) Cache

type DOHResolver

type DOHResolver interface {
	Resolver
	URL() string
}

func NewDOHResolver

func NewDOHResolver(url string) DOHResolver

type HostReplacer

type HostReplacer interface {
	Resolver
}

func NewHostReplacer

func NewHostReplacer(raw Resolver, oldNew ...string) HostReplacer

type Resolver

type Resolver interface {
	Resolve(ctx context.Context, host string) (ip []net.IP, err error)
}

type SystemResolver

type SystemResolver interface {
	Resolver
}

func NewSystemResolver

func NewSystemResolver() SystemResolver

Jump to

Keyboard shortcuts

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