dns

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlushSysCaches

func FlushSysCaches() error

func UpdateMatcher

func UpdateMatcher(m Matcher)

Types

type Conn

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

func NewConn

func NewConn(proxyAddr string) Conn

func (Conn) Close

func (d Conn) Close() error

func (Conn) ReadFrom

func (d Conn) ReadFrom(data []byte) (int, net.Addr, error)

func (Conn) SetDeadline

func (d Conn) SetDeadline(t time.Time) error

func (Conn) SetReadDeadline

func (d Conn) SetReadDeadline(t time.Time) error

func (Conn) WriteTo

func (d Conn) WriteTo(data []byte, addr net.Addr) (int, error)

type Matcher

type Matcher interface {
	GetDns(question string, isPrimary bool) resolver.Client
}

Jump to

Keyboard shortcuts

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