awldns

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalDomain               = "awl"
	DNSIp                     = "127.0.0.66"
	DefaultDNSPort            = "53"
	DNSAddress                = "127.0.0.66:53"
	DefaultUpstreamDNSAddress = "1.1.1.1:53"
)

Variables

This section is empty.

Functions

func IsValidDomainName

func IsValidDomainName(domain string) bool

func TrimDomainName

func TrimDomainName(domain string) string

Types

type Resolver

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

func NewResolver

func NewResolver(dnsAddress string) *Resolver

func (*Resolver) Close

func (r *Resolver) Close()

func (*Resolver) DNSAddress

func (r *Resolver) DNSAddress() string

func (*Resolver) ReceiveConfiguration

func (r *Resolver) ReceiveConfiguration(upstreamDNS string, namesMapping map[string]string)

Jump to

Keyboard shortcuts

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