osx

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

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

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DnsConfig

type DnsConfig struct {
	Resolvers []*ResolverInfo
}

type DnsInfo

type DnsInfo struct {
	Config *DnsConfig
	Scoped *DnsConfig
}

func ParseScutilDns

func ParseScutilDns(data string) (*DnsInfo, error)

FIXME: This parser is pretty lame and probably will break if anything changes

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func New

func New(config *dnsheaven.Config) (*Resolver, error)

func (*Resolver) Resolve

func (r *Resolver) Resolve(net string, msg *dns.Msg) (*dns.Msg, error)

type ResolverInfo

type ResolverInfo struct {
	SearchDomains []string
	Nameservers   []string
	Domain        string
	Reachable     bool
	Timeout       int
	IsMdns        bool
}

Jump to

Keyboard shortcuts

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