Commit afce05f2 authored by vyzo's avatar vyzo

add custom DNS Resolver configuration

parent 6b35ac32
...@@ -28,6 +28,7 @@ type Config struct { ...@@ -28,6 +28,7 @@ type Config struct {
AutoNAT AutoNATConfig AutoNAT AutoNATConfig
Pubsub PubsubConfig Pubsub PubsubConfig
Peering Peering Peering Peering
DNS DNSConfig
Provider Provider Provider Provider
Reprovider Reprovider Reprovider Reprovider
......
package config
// DNSConfig specifies custom resolvers using DoH
type DNSConfig struct {
// DefaultResolver, if present, is a URL for the default DoH resolver.
// If empty, DNS resolution will use the system resolver.
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