Documentation
¶
Overview ¶
Package dnsproxy is responsible for the DNS proxy server that will redirect specified domains to the SNI proxy.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// ListenAddr is the address the DNS server is supposed to listen to.
ListenAddr netip.AddrPort
// Upstream is the upstream that the requests will be forwarded to. The
// format of an upstream is the one that can be consumed by
// [proxy.ParseUpstreamsConfig].
Upstream string
// Mapper is the database which grants one to one mapping between domain and network address
Mapper Mapper
TTL uint32
}
Config is the DNS proxy configuration.
Click to show internal directories.
Click to hide internal directories.