dns

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCachedDnsItem added in v1.8.2

func AddCachedDnsItem(ip, domain string, rule ruleEngine.Rule)

func GetCachedDnsItem added in v1.8.2

func GetCachedDnsItem(ip string) (string, ruleEngine.Rule, bool)

func HandleDnsConn added in v0.7.0

func HandleDnsConn(conn Conn, metadata *constant.Metadata) error

func Hijack added in v0.6.8

func Hijack(_ string) error

func ResetCache added in v1.8.2

func ResetCache()

func Resume added in v0.6.8

func Resume(_ string) error

func UpdateDnsMap added in v0.11.0

func UpdateDnsMap(local, remote cResolver.Resolver)

Types

type Conn

type Conn interface {
	ReadFrom([]byte) (int, net.Addr, error)
	WriteTo([]byte, net.Addr) (int, error)
}

Jump to

Keyboard shortcuts

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