dns

package
v0.0.0-...-5ef3aa8 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig interface {
	Get() (*dns.ClientConfig, error)
}

type Lookup

type Lookup interface {
	LookupSRV(name string) ([]net.SRV, error)
	LookupA(name string) (string, error)
	Lookup(name string) ([]string, error)
}

func NewClientConfigLookupLib

func NewClientConfigLookupLib(cfg ClientConfig) (Lookup, error)

func NewDefaultLookupLib

func NewDefaultLookupLib() (Lookup, error)

func NewLookupLib

func NewLookupLib(serverString string) Lookup

type ResolvConfClientConfig

type ResolvConfClientConfig struct {
	File string
}

func (*ResolvConfClientConfig) Get

Jump to

Keyboard shortcuts

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