v2.4.0
·
21 commits
to main
since this release
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, usingtls://endpoints and defaulting to port853.
await fetch('https://example.com', {
dns: {
dot: 'tls://one.one.one.one',
},
});- Added encrypted DNS bootstrap behavior: when
dns.dohordns.dotis set,dns.serversis used to resolve the encrypted DNS endpoint hostname. Without encrypted DNS,dns.serverskeeps 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.