dns

package
v0.0.0-...-9f3b5b4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 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)

func (*DNSOverrideDialer) TLSConfig

func (d *DNSOverrideDialer) TLSConfig() *tls.Config

Source Files

  • resolver.go

Jump to

Keyboard shortcuts

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