Commit f1485954 authored by vyzo's avatar vyzo

simplify DNS config

parent afce05f2
package config package config
// DNSConfig specifies custom resolvers using DoH // DNSConfig specifies DNS resolution rules using custom resolvers
type DNSConfig struct { type DNSConfig struct {
// DefaultResolver, if present, is a URL for the default DoH resolver. // CustomResolvers is a map of FQDNs to URLs for custom DNS resolution.
// If empty, DNS resolution will use the system resolver. Resolvers map[string]string
DefaultResolver string `json:",omitempty"`
// CustomResolvers is a map of domains to URLs for custom DoH resolution.
CustomResolvers map[string]string `json:",omitempty"`
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment