resolver

package
v0.3.1-rc.5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bootstrap dns.DNS = &System{}

Functions

func LookupIP

func LookupIP(domain string) ([]net.IP, error)

func ResolveUDPAddr

func ResolveUDPAddr(address string) (*net.UDPAddr, error)

Types

type System

type System struct{ DisableIPv6 bool }

func (*System) Close

func (d *System) Close() error

func (*System) Do

func (d *System) Do([]byte) ([]byte, error)

func (*System) LookupIP

func (d *System) LookupIP(domain string) ([]net.IP, error)

func (*System) Record

func (d *System) Record(domain string, t dnsmessage.Type) (dns.IPResponse, error)

Jump to

Keyboard shortcuts

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