dns

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hijack added in v0.6.8

func Hijack(_ string) error

func Resume added in v0.6.8

func Resume(_ string) error

func UpdateMatcher

func UpdateMatcher(m Matcher)

Types

type Conn

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

func NewConn

func NewConn() *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(_ time.Time) error

func (*Conn) SetReadDeadline

func (d *Conn) SetReadDeadline(_ 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) (resolver.Resolver, constants.DnsRule)
}

Jump to

Keyboard shortcuts

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