dnsresolver

package
v0.0.0-...-2c9df62 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: 0BSD Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainNameResolver

type DomainNameResolver interface {
	// ResolveA resolves domain's A records agains given nameserver.
	ResolveA(domain, nameserver string) ([]net.IP, error)
}

DomainNameResolver represents domain name resolver.

func New

func New() DomainNameResolver

New creates new DomainNameResolver.

Jump to

Keyboard shortcuts

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