Skip to content

Releases: libp2p/go-doh-resolver

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 17 Jul 13:20
6d6d117

Note

This release was brought to you by the Shipyard team.

Highlights

TXT lookups can now report the DNS record TTL (#33)

New Resolver.LookupTXTWithTTL returns TXT records together with how long they may be cached. On a cache hit it reports the entry's remaining lifetime, and the value is capped by WithMaxCacheTTL; 0 means the records may not be cached. This is opt-in and additive: LookupTXT behaves as before. The resolver now implements the TXTWithTTLResolver interface from go-multiaddr-dns v0.6.0, asserted at compile time.

Consumers use the TTL to expire TXT-derived state at the right time: DNSLink records feeding Cache-Control: max-age on IPFS gateways (ipfs/boxo#1167, ipfs/boxo#329), and dnsaddr= multiaddrs carrying rotating /certhash/ segments.

TTL fixes for existing lookups (#33)

The TTL of an RRset with differing per-record TTLs is now the lowest one, order-independent, and a genuine TTL of 0 (do not cache) is respected (RFC 2181). An empty A or AAAA answer no longer zeroes out the other family's TTL, so addresses of IPv4-only and IPv6-only domains are cached reliably again.

Requires Go 1.25 (#30, #32, #36)

go.mod now requires Go 1.25.

Full Changelog: v0.5.0...v0.6.0

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 08 Jan 21:12
b8b3f3c

What's Changed

New Contributors

  • @lidel made their first contribution in #29

Full Changelog: v0.4.0...v0.5.0

v0.4.0

Choose a tag to compare

@marten-seemann marten-seemann released this 22 Dec 09:13
2872223

What's Changed

  • Perform test locally instead of using a live dns resolution by @thibmeu in #13
  • Add a max TTL for cached entries by @thibmeu in #12

New Contributors

Full Changelog: v0.3.1...v0.4.0

v0.3.1

Choose a tag to compare

@vyzo vyzo released this 19 May 17:35
343363c

Changelog:

  • #4 -- Fix cache race

v0.3.0

Choose a tag to compare

@vyzo vyzo released this 14 Apr 19:11
01bec93

Changelog:

  • #3 -- Add DNS RR cache

v0.2.0

Choose a tag to compare

@vyzo vyzo released this 12 Apr 11:18
73c190e

Support older (pre-1.16) versions of go.

v0.1.0

Choose a tag to compare

@vyzo vyzo released this 12 Apr 08:50
5933266

Initial release; see #1 implementation.