Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-config
Commits
f1485954
Commit
f1485954
authored
Apr 13, 2021
by
vyzo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify DNS config
parent
afce05f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
dns.go
dns.go
+3
-6
No files found.
dns.go
View file @
f1485954
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"`
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment