dns

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

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

Go to latest
Published: Mar 19, 2019 License: GPL-3.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Address string
	Port    uint16
}

func (Address) String

func (a Address) String() string

type ByTarget

type ByTarget []net.SRV

func (ByTarget) Len

func (a ByTarget) Len() int

func (ByTarget) Less

func (a ByTarget) Less(i, j int) bool

func (ByTarget) Swap

func (a ByTarget) Swap(i, j int)

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)
}

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