dns

package
v0.0.0-...-9ed9f2e Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithBackground

func WithBackground(server *Server, timeout time.Duration)

Types

type Resolver

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

type Server

type Server struct {
	sync.RWMutex

	RetryTimes int
	// contains filtered or unexported fields
}

func Background

func Background() *Server

func New

func New(servers []string, timeout time.Duration) *Server

func (*Server) Get

func (r *Server) Get(host string) []net.IP

func (*Server) LookupHost

func (r *Server) LookupHost(host string) (result []net.IP, err error)

func (*Server) Remove

func (r *Server) Remove(host string)

func (*Server) Set

func (r *Server) Set(host string, ips []net.IP)

Jump to

Keyboard shortcuts

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