mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
Some checks failed
CodeQL / codeql (push) Has been cancelled
Docker Build / docker-build (push) Has been cancelled
Gateway Conformance / gateway-conformance (push) Has been cancelled
Gateway Conformance / gateway-conformance-libp2p-experiment (push) Has been cancelled
Go Build / go-build (push) Has been cancelled
Go Check / go-check (push) Has been cancelled
Go Lint / go-lint (push) Has been cancelled
Go Test / go-test (push) Has been cancelled
Interop / interop-prep (push) Has been cancelled
Sharness / sharness-test (push) Has been cancelled
Spell Check / spellcheck (push) Has been cancelled
Interop / helia-interop (push) Has been cancelled
Interop / ipfs-webui (push) Has been cancelled
https://github.com/ipfs/kubo/pull/10883 https://github.com/ipshipyard/config.ipfs-mainnet.org/issues/3 --------- Co-authored-by: gammazero <gammazero@users.noreply.github.com>
18 lines
735 B
Go
18 lines
735 B
Go
package config
|
|
|
|
// DNS specifies DNS resolution rules using custom resolvers.
|
|
type DNS struct {
|
|
// Resolvers is a map of FQDNs to URLs for custom DNS resolution.
|
|
// URLs starting with `https://` indicate DoH endpoints.
|
|
// Support for other resolver types can be added in the future.
|
|
// https://en.wikipedia.org/wiki/Fully_qualified_domain_name
|
|
// https://en.wikipedia.org/wiki/DNS_over_HTTPS
|
|
//
|
|
// Example:
|
|
// - Custom resolver for ENS: `eth.` → `https://dns.eth.limo/dns-query`
|
|
// - Override the default OS resolver: `.` → `https://1.1.1.1/dns-query`
|
|
Resolvers map[string]string
|
|
// MaxCacheTTL is the maximum duration DNS entries are valid in the cache.
|
|
MaxCacheTTL *OptionalDuration `json:",omitempty"`
|
|
}
|