go-ipfs-config: update comments
Co-authored-by: Marcin Rataj <lidel@lidel.org>
vyzo committed
Apr 13, 2021 at 17:53 UTC
f264de41392227173da5ec44d929831d37d60161
1 file changed
+9
-1
config/dns.go
+9
-1
@@ -2,6 +2,14 @@ package config
2
3
// DNSConfig specifies DNS resolution rules using custom resolvers
4
type DNSConfig struct {
5
- // CustomResolvers is a map of FQDNs to URLs for custom DNS resolution.
5
+ // Resolvers is a map of FQDNs to URLs for custom DNS resolution.
6
+ // URLs starting with `https://` indicate DoH endpoints.
7
+ // Support for other resolver types can be added in the future.
8
+ // https://en.wikipedia.org/wiki/Fully_qualified_domain_name
9
+ // https://en.wikipedia.org/wiki/DNS_over_HTTPS
10
+ //
11
+ // Example:
12
+ // - Custom resolver for ENS: `eth.` → `https://eth.link/dns-query`
13
+ // - Override the default OS resolver: `.` → `https://doh.applied-privacy.net/query`
14
Resolvers map[string]string
15
}