mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2024-12-13 18:15:38 +03:00
25918e56fa
Squashed commit of the following: commit 284190f748345c7556e60b67f051ec5f6f080948 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Wed Dec 6 19:36:00 2023 +0300 all: sync with master; upd chlog
35 lines
991 B
Go
35 lines
991 B
Go
package dnssvc
|
|
|
|
import (
|
|
"net/netip"
|
|
"time"
|
|
)
|
|
|
|
// Config is the AdGuard Home DNS service configuration structure.
|
|
//
|
|
// TODO(a.garipov): Add timeout for incoming requests.
|
|
type Config struct {
|
|
// Addresses are the addresses on which to serve plain DNS queries.
|
|
Addresses []netip.AddrPort
|
|
|
|
// BootstrapServers are the addresses of DNS servers used for bootstrapping
|
|
// the upstream DNS server addresses.
|
|
BootstrapServers []string
|
|
|
|
// UpstreamServers are the upstream DNS server addresses to use.
|
|
UpstreamServers []string
|
|
|
|
// DNS64Prefixes is a slice of NAT64 prefixes to be used for DNS64. See
|
|
// also [Config.UseDNS64].
|
|
DNS64Prefixes []netip.Prefix
|
|
|
|
// UpstreamTimeout is the timeout for upstream requests.
|
|
UpstreamTimeout time.Duration
|
|
|
|
// BootstrapPreferIPv6, if true, instructs the bootstrapper to prefer IPv6
|
|
// addresses to IPv4 ones when bootstrapping.
|
|
BootstrapPreferIPv6 bool
|
|
|
|
// UseDNS64, if true, enables DNS64 protection for incoming requests.
|
|
UseDNS64 bool
|
|
}
|