Documentation
¶
Index ¶
- type ACLConfig
- type ACLZoneConfig
- type BlocklistConfig
- type BlocklistEntry
- type CacheConfig
- type ClusterActionConfig
- type ClusterConfig
- type ClusterPeerConfig
- type ClusterSyncConfig
- type Config
- type DaemonConfig
- type ForwardZoneConfig
- type LocalZoneConfig
- type LoggingConfig
- type RRLConfig
- type RateLimitConfig
- type ResolverConfig
- type SecurityConfig
- type ServerConfig
- type StubZoneConfig
- type WebAuthConfig
- type WebConfig
- type WebDashboardConfig
- type ZabbixConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ACLConfig ¶
type ACLConfig struct {
Allow []string
Deny []string
Zones []ACLZoneConfig
}
ACLConfig holds access control list settings.
type ACLZoneConfig ¶
ACLZoneConfig holds per-zone ACL settings.
type BlocklistConfig ¶
type BlocklistConfig struct {
Enabled bool
Lists []BlocklistEntry
RefreshInterval time.Duration
BlockingMode string
CustomIP string
Whitelist []string
}
BlocklistConfig holds blocklist filtering settings.
type BlocklistEntry ¶
BlocklistEntry holds a single blocklist source URL and its format.
type CacheConfig ¶
type CacheConfig struct {
MaxEntries int
MinTTL uint32
MaxTTL uint32
NegMaxTTL uint32
SweepInterval time.Duration
ServeStale bool
StaleTTL uint32
NoCacheClients []string
Prefetch bool
}
CacheConfig holds cache settings.
type ClusterActionConfig ¶
ClusterActionConfig controls cluster fanout behavior for admin actions.
type ClusterConfig ¶
type ClusterConfig struct {
Enabled bool
Role string
NodeID string
Peers []ClusterPeerConfig
Actions ClusterActionConfig
Sync ClusterSyncConfig
}
ClusterConfig holds optional multi-node cluster settings.
type ClusterPeerConfig ¶
type ClusterPeerConfig struct {
Name string
Enabled bool
APIBase string
APIToken string
SyncFields []string
}
ClusterPeerConfig defines a peer node accessible via admin API.
type ClusterSyncConfig ¶
ClusterSyncConfig controls configuration synchronization behavior.
type Config ¶
type Config struct {
Server ServerConfig
Resolver ResolverConfig
Cache CacheConfig
Security SecurityConfig
Logging LoggingConfig
ACL ACLConfig
Web WebConfig
Daemon DaemonConfig
Zabbix ZabbixConfig
Blocklist BlocklistConfig
Cluster ClusterConfig
LocalZones []LocalZoneConfig
ForwardZones []ForwardZoneConfig
StubZones []StubZoneConfig
}
Config holds the complete application configuration.
type DaemonConfig ¶
DaemonConfig holds daemon mode settings.
type ForwardZoneConfig ¶
ForwardZoneConfig holds a single forward zone: queries matching the zone name are forwarded (RD=1) to the configured upstream addresses.
type LocalZoneConfig ¶
LocalZoneConfig holds a local zone's definition from the config file.
type LoggingConfig ¶
LoggingConfig holds logging settings.
type RRLConfig ¶
type RRLConfig struct {
Enabled bool
ResponsesPerSecond float64
SlipRatio int
IPv4Prefix int
IPv6Prefix int
}
RRLConfig holds response rate limiting settings.
type RateLimitConfig ¶
RateLimitConfig holds rate limiter settings.
type ResolverConfig ¶
type ResolverConfig struct {
MaxDepth int
MaxCNAMEDepth int
UpstreamTimeout time.Duration
UpstreamRetries int
QMinEnabled bool
Caps0x20Enabled bool
PreferIPv4 bool
DNSSECEnabled bool
DNSSECAllowSHA1 bool
HardenBelowNXDomain bool
RootHintsRefresh time.Duration
ECSEnabled bool
ECSMaxPrefix int
DNS64Enabled bool
DNS64Prefix string
FallbackResolvers []string
UpstreamUDPBufferSize int
}
ResolverConfig holds resolver settings.
type SecurityConfig ¶
type SecurityConfig struct {
RateLimit RateLimitConfig
RRL RRLConfig
PrivateAddressFilter bool
DNSCookies bool
}
SecurityConfig holds security settings.
type ServerConfig ¶
type ServerConfig struct {
ListenAddr string
MetricsAddr string
MaxUDPSize int
TCPTimeout time.Duration
MaxTCPConns int
MaxUDPWorkers int
GracefulPeriod time.Duration
TCPPipelineMax int
TCPIdleTimeout time.Duration
DoTEnabled bool
DoTListenAddr string
TLSCertFile string
TLSKeyFile string
}
ServerConfig holds server-related settings.
type StubZoneConfig ¶
StubZoneConfig holds a single stub zone: the resolver starts iterative resolution (RD=0) from the configured nameserver addresses instead of roots.
type WebAuthConfig ¶
WebAuthConfig holds web dashboard authentication settings.
type WebConfig ¶
type WebConfig struct {
Enabled bool
Addr string
QueryLogBuffer int
TopClientsLimit int
TopDomainsLimit int
AlertErrorThreshold float64
AlertLatencyMs int
AutoUpdate bool
UpdateCheckInterval time.Duration
Dashboard WebDashboardConfig
Auth WebAuthConfig
DoHEnabled bool
DoH3Enabled bool
TLSEnabled bool
TLSCertFile string
TLSKeyFile string
AutoTLS bool
AutoTLSDomain string
AutoTLSEmail string
AutoTLSCacheDir string
AutoTLSStaging bool
}
WebConfig holds web dashboard settings.
type WebDashboardConfig ¶
WebDashboardConfig holds persisted dashboard layout preferences.
type ZabbixConfig ¶
ZabbixConfig holds Zabbix integration settings.