dns

package
v0.21.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver added in v0.19.0

type Resolver interface {
	// LookupHost looks up the IP addresses for a given host.
	LookupHost(host string) ([]netip.Addr, error)
}

Resolver is a DNS resolver.

func NewUDPResolver added in v0.21.0

func NewUDPResolver(net network.Network, nameservers []netip.AddrPort) Resolver

NewUDPResolver creates a new DNS resolver that uses DNS over UDP.

Directories

Path Synopsis
Package addrselect implements RFC 6724, which describes the preferred source and destination address selection algorithm for Internet Protocol version 6 (IPv6) and Internet Protocol version 4 (IPv4).
Package addrselect implements RFC 6724, which describes the preferred source and destination address selection algorithm for Internet Protocol version 6 (IPv6) and Internet Protocol version 4 (IPv4).

Jump to

Keyboard shortcuts

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