dns

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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, isPrimary bool) (resolver.Client, constants.DnsRule)
}

Jump to

Keyboard shortcuts

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