Documentation ¶
Index ¶
- Constants
- func AuthoritativeDNSServer(cfg runtime.AuthorityConfig, rt *runtime.Runtime, v4 bool, net string, ...)
- func EnsureLogDir()
- func GetLogDir() string
- func ServeDNS(cfg runtime.RecursorConfig, rt *runtime.Runtime, v4 bool, net string, ...)
- func SnitchDNSServer(cfg runtime.NSnitchConfig, rt *runtime.Runtime, v4 bool, net string, ...)
- func SnitchHTTPServer(cfg runtime.NSnitchConfig, rt *runtime.Runtime, v4 bool, net string, ...)
- type DomainCache
- type ExchangeHistory
- type ExchangeHistoryItem
- type StackAddedPanic
Constants ¶
View Source
const ( StatsQueryTotal = "resolver:queries:total" StatsQueryUDP = "resolver:queries:udp" StatsQueryTCP = "resolver:queries:tcp" StatsQueryTLS = "resolver:queries:tls" /// will fine tune the definition of failure StatsQueryFailure = "resolver:queries:failed" StatsQueryLimitedIps = "resolver:queries:limited_ips" StatsQueryUniqueIps = "resolver:queries:remote_ips" )
Variables ¶
This section is empty.
Functions ¶
func AuthoritativeDNSServer ¶
func AuthoritativeDNSServer(cfg runtime.AuthorityConfig, rt *runtime.Runtime, v4 bool, net string, d *runtime.ServerDomain)
func EnsureLogDir ¶
func EnsureLogDir()
func ServeDNS ¶
func ServeDNS(cfg runtime.RecursorConfig, rt *runtime.Runtime, v4 bool, net string, d *runtime.ServerDomain, opennicMode bool, dnssecMode bool)
func SnitchDNSServer ¶
func SnitchDNSServer(cfg runtime.NSnitchConfig, rt *runtime.Runtime, v4 bool, net string, d *runtime.ServerDomain)
func SnitchHTTPServer ¶
func SnitchHTTPServer(cfg runtime.NSnitchConfig, rt *runtime.Runtime, v4 bool, net string, d *runtime.ServerDomain)
Types ¶
type DomainCache ¶
/ Cache primitives / Solves problems: / - cache multiplication (ttl should not be part of the search key!) / - save PTR IP in reverse order (correctly)
type ExchangeHistory ¶
type ExchangeHistory []*ExchangeHistoryItem
func (*ExchangeHistory) Add ¶
func (h *ExchangeHistory) Add(i *ExchangeHistoryItem)
func (ExchangeHistory) String ¶
func (h ExchangeHistory) String() (s string)
type ExchangeHistoryItem ¶
type ExchangeHistoryItem struct {
// contains filtered or unexported fields
}
type StackAddedPanic ¶
type StackAddedPanic struct {
// contains filtered or unexported fields
}
func (*StackAddedPanic) String ¶
func (s *StackAddedPanic) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.