Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockingConfig ¶
type CachingConfig ¶
type ClientLookupConfig ¶
type Config ¶
type Config struct {
Upstream UpstreamConfig `yaml:"upstream"`
CustomDNS CustomDNSConfig `yaml:"customDNS"`
Conditional ConditionalUpstreamConfig `yaml:"conditional"`
Blocking BlockingConfig `yaml:"blocking"`
ClientLookup ClientLookupConfig `yaml:"clientLookup"`
Caching CachingConfig `yaml:"caching"`
QueryLog QueryLogConfig `yaml:"queryLog"`
Prometheus PrometheusConfig `yaml:"prometheus"`
LogLevel string `yaml:"logLevel"`
Port uint16 `yaml:"port"`
HTTPPort uint16 `yaml:"httpPort"`
HTTPSPort uint16 `yaml:"httpsPort"`
CertFile string `yaml:"httpsCertFile"`
KeyFile string `yaml:"httpsKeyFile"`
BootstrapDNS Upstream `yaml:"bootstrapDns"`
}
main configuration
type CustomDNSConfig ¶
type PrometheusConfig ¶
PrometheusConfig contains the config values for prometheus
type QueryLogConfig ¶
type Upstream ¶
Upstream is the definition of external DNS server
func ParseUpstream ¶
ParseUpstream creates new Upstream from passed string in format net:host[:port][/path]
func (*Upstream) UnmarshalYAML ¶
type UpstreamConfig ¶
type UpstreamConfig struct {
ExternalResolvers []Upstream `yaml:"externalResolvers"`
}
Click to show internal directories.
Click to hide internal directories.