dns

package
v0.0.0-...-6503209 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSOverrideDialer

type DNSOverrideDialer struct {
	*net.Dialer
	// contains filtered or unexported fields
}

A net.Dialer equivalent, with the capability of overriding DNS lookup results.

func NewDNSOverrideDialer

func NewDNSOverrideDialer(dnsMap map[string]string, tlsConfig *tls.Config) *DNSOverrideDialer

func (*DNSOverrideDialer) DialContext

func (d *DNSOverrideDialer) DialContext(ctx context.Context, network, addr string) (net.Conn, error)

func (*DNSOverrideDialer) DialTLSContext

func (d *DNSOverrideDialer) DialTLSContext(ctx context.Context, network, addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

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