Skip to content

v2.4.0

Choose a tag to compare

@StopMakingThatBigFace StopMakingThatBigFace released this 28 May 15:37
· 21 commits to main since this release
64d0cd1

Release Notes

Added

  • Added DNS-over-HTTPS support with dns.doh, allowing request hostnames to be resolved through a DoH endpoint.
await fetch('https://example.com', {
  dns: {
    doh: 'https://cloudflare-dns.com/dns-query',
  },
});
  • Added DNS-over-TLS support with dns.dot, using tls:// endpoints and defaulting to port 853.
await fetch('https://example.com', {
  dns: {
    dot: 'tls://one.one.one.one',
  },
});
  • Added encrypted DNS bootstrap behavior: when dns.doh or dns.dot is set, dns.servers is used to resolve the encrypted DNS endpoint hostname. Without encrypted DNS, dns.servers keeps its existing DNS behavior.

Docs

  • Documented dns.doh, dns.dot, encrypted DNS bootstrap semantics, and examples.

Tests

  • Added coverage for invalid DoH endpoints, invalid DoT endpoints, and conflicting encrypted DNS configuration.