Documentation ¶
Overview ¶
Package dnsproxy contains the DNS proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Address is the default listen address of the DNS proxy. Address = "127.0.0.1:4253" // ListenUDP specifies whether the DNS proxy listens on UDP. ListenUDP = true // ListenTCP specifies whether the DNS proxy listens on TCP. ListenTCP = true )
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v0.1.0
Config is a DNS proxy configuration.
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy is a DNS proxy.
func (*Proxy) SetRemotes ¶
SetRemotes sets the mapping from domain names to remote server addresses.
func (*Proxy) SetWatches ¶
SetWatches sets the domains watched for A and AAAA record updates.
type Remotes ¶
Remotes contains a mapping from domain names to remote DNS servers.
type Report ¶
Report is a report for a watched domain.
type Watches ¶
Watches contains a list of domains to watch for A and AAAA updates.
func (*Watches) AddTempCNAME ¶ added in v1.0.0
AddTempCNAME adds a temporary CNAME domain to the watch list with a ttl.
func (*Watches) AddTempDNAME ¶ added in v1.0.0
AddTempDNAME adds a temporary DNAME domain to the watch list with a ttl.
Click to show internal directories.
Click to hide internal directories.