Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

add custom DNS Resolver configuration #126

Merged
merged 4 commits into from
Apr 15, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ type Config struct {
AutoNAT AutoNATConfig
Pubsub PubsubConfig
Peering Peering
DNS DNSConfig

Provider Provider
Reprovider Reprovider
Expand Down
7 changes: 7 additions & 0 deletions dns.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package config

// DNSConfig specifies DNS resolution rules using custom resolvers
type DNSConfig struct {
// CustomResolvers is a map of FQDNs to URLs for custom DNS resolution.
vyzo marked this conversation as resolved.
Show resolved Hide resolved
Resolvers map[string]string
}