dialwithdns

package
v1.0.0 Latest Latest
Warning

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

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

README

dialwithdns plugin reslove domain with custom dns or doh, instead of local dns

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DialWithDNS

type DialWithDNS struct {
	DNSClient *brook.DNSClient
	DOHClient *brook.DOHClient
	Prefer    string
}

func NewDialWithDNS

func NewDialWithDNS(dns, prefer string) (*DialWithDNS, error)

func (*DialWithDNS) IP

func (p *DialWithDNS) IP(domain string) (net.IP, error)

func (*DialWithDNS) TouchBrook

func (p *DialWithDNS) TouchBrook()

Jump to

Keyboard shortcuts

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