Note
This release was brought to you by the Shipyard team.
Highlights
TXT lookups can now report the DNS record TTL (#75)
New Resolver.LookupTXTWithTTL returns TXT records together with how long they may be cached. It routes per domain like LookupTXT, and reports the TTL when the matched resolver implements the new optional TXTWithTTLResolver interface, for example a DNS-over-HTTPS resolver (libp2p/go-doh-resolver#33). Resolvers without TTL support report 0, meaning unknown.
This is opt-in and additive: LookupTXT and the BasicResolver interface are unchanged. The TTL lets callers expire TXT-derived state at the right time, such as dnsaddr= multiaddrs carrying potentially rotating IPNS names, or DNSLink records feeding Cache-Control: max-age on IPFS gateways (ipfs/boxo#329).
Requires Go 1.25 (#73)
go.mod now requires Go 1.25.
Full Changelog: v0.5.0...v0.6.0