Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Forwarder ¶
type Forwarder struct {
// contains filtered or unexported fields
}
Forwarder type.
func New ¶
New return forwarder.
Accepted forwarder_servers formats:
- "1.1.1.1:53" — plain UDP (TCP fallback on TC)
- "tls://1.1.1.1:853" — DoT (RFC 7858) over TCP-TLS
- "https://1.1.1.1/dns-query" — DoH (RFC 8484) with IP literal
- "https://dns.example.com/dns-query" — DoH with hostname (bootstrapped via the system resolver once at startup; resolved IPs are pinned for the process lifetime, no per-query DNS dependency)
DoH servers honour cfg.Timeout (per-IP dial budget) and cfg.QueryTimeout (full request budget) — operators tune both via the existing top-level config keys, no DoH-specific knob.
Each entry is parsed independently; a malformed or unreachable entry is logged and skipped so one bad upstream does not abort startup if others are usable.
Click to show internal directories.
Click to hide internal directories.