kubo/core/node/libp2p
Marcin Rataj 541bd657a6 feat(dns): add DNS.OverrideSystem config to apply resolvers globally
adds DNS.OverrideSystem flag (enabled by default) that extends
DNS.Resolvers to affect all DNS lookups in the daemon process,
not just DNSLink and Multiaddr resolution.

this ensures AutoTLS ACME DNS-01 challenge verification, HTTP retrieval,
and third-party library code all respect DNS.Resolvers config.

implementation creates a net.Resolver bridge that intercepts DNS wire
protocol queries, parses them with miekg/dns, calls madns.Resolver,
and returns properly formatted DNS responses.

note: this is an exploration of daemon-wide DNS configuration without
refactoring boxo/gateway. a cleaner future approach may create native
net.Resolver from config first, then convert to madns only for go-libp2p.
2026-01-12 21:26:29 +01:00
..
fd refactor(ci): optimize build workflows (#10973) 2025-09-19 14:44:38 +02:00
addrs.go feat(ci): reusable spellcheck from unified CI (#10873) 2025-08-14 00:35:35 +00:00
discovery.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
dns.go refactor: update to go-libp2p v0.37.0 (#10554) 2024-10-23 01:31:40 +02:00
filters.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
host.go feat(cli/rpc/add): fast provide of root CID (#11046) 2025-11-14 11:08:29 -08:00
hostopt.go refactor: stop using go-libp2p deprecated peer.ID.Pretty 2023-09-18 15:58:15 +02:00
libp2p_test.go add a test case for libp2p option prioritization 2022-02-28 15:26:06 +04:00
libp2p.go feat(config): connmgr: expose silence period (#10827) 2025-06-17 15:55:57 +02:00
madns_net_resolver_test.go feat(dns): add DNS.OverrideSystem config to apply resolvers globally 2026-01-12 21:26:29 +01:00
madns_net_resolver.go feat(dns): add DNS.OverrideSystem config to apply resolvers globally 2026-01-12 21:26:29 +01:00
nat.go feat: run AutoNAT V2 service in addition to V1 (#10468) 2024-08-06 21:51:45 +02:00
peerstore.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
pnet.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
pubsub.go chore: bump go-libp2p v0.22.0 & go1.18&go1.19 2022-09-09 17:09:38 +02:00
rcmgr_defaults.go feat(config): optional Gateway.MaxRangeRequestFileSize (#10997) 2025-11-11 18:54:43 -08:00
rcmgr_logging_test.go test: replace go-clock with testing/synctest (#11131) 2026-01-07 13:30:15 -08:00
rcmgr_logging.go test: replace go-clock with testing/synctest (#11131) 2026-01-07 13:30:15 -08:00
rcmgr.go test: replace go-clock with testing/synctest (#11131) 2026-01-07 13:30:15 -08:00
relay.go refactor: update to go-libp2p v0.37.0 (#10554) 2024-10-23 01:31:40 +02:00
routing.go feat(config): AutoConf with "auto" placeholders (#10883) 2025-08-20 05:59:11 +02:00
routingopt_test.go feat(config): AutoConf with "auto" placeholders (#10883) 2025-08-20 05:59:11 +02:00
routingopt.go feat(config): AutoConf with "auto" placeholders (#10883) 2025-08-20 05:59:11 +02:00
sec.go Merge branch 'master' into tls-by-default 2024-08-06 20:16:57 -07:00
smux.go chore: use errors.New to replace fmt.Errorf with no parameters (#10617) 2024-12-10 13:50:35 -08:00
topicdiscovery.go style: gofumpt and godot [skip changelog] (#10081) 2023-08-17 14:02:08 +02:00
transport.go feat(libp2p): shared TCP listeners and AutoTLS.AutoWSS (#10565) 2024-12-20 18:41:25 +01:00