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

Added config for dns-server patch #40

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all 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 @@ -24,6 +24,7 @@ type Config struct {
Bootstrap []string // local nodes's bootstrap peer addresses
Gateway Gateway // local node's gateway server options
API API // local node's API settings
DNS DNS // local node's DNS resolver settings
Swarm SwarmConfig
Pubsub PubsubConfig

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

type DNS struct {
// Resolver: multi-address for the DNS resolver to use. If this is empty, it will use the system's built-in resolver. Examples:
// /ip4/1.1.1.1/udp/53 -> Sets up a DNS resolver using the standard (UDP, plain-text) DNS protocol
// /ip4/1.1.1.1/tcp/853/tls -> DNS-over-TLS
// /ip4/1.1.1.1/tcp/443/https -> DNS-over-HTTPS
// /ip4/1.1.1.1/tcp/443/https/cloudflare-dns.com -> DNS-over-HTTPS, with explicit hostname (recommended)
// /dns4/cloudflare-dns.com/tcp/443/https -> DNS-over-HTTPS using a hostname (this will first resolve the hostname using the system's built-in resolver)
Resolver string
}