You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🍊 <ahref="https://github.com/forwardemail/tangerine"target="_blank">Tangerine</a> is the best <ahref="https://nodejs.org"target="_blank">Node.js</a> drop-in replacement for <ahref="https://nodejs.org/api/dns.html#resolveroptions"target="_blank">dns.promises.Resolver</a> using <ahref="https://en.wikipedia.org/wiki/DNS_over_HTTPS"target="_blank">DNS over HTTPS</a> ("DoH") via <ahref="https://github.com/nodejs/undici"target="_blank">undici</a> with built-in retries, timeouts, smart server rotation, <ahref="https://developer.mozilla.org/en-US/docs/Web/API/AbortController"target="_blank">AbortControllers</a>, and caching support for multiple backends (with TTL and purge support).
14
+
🍊 <ahref="https://github.com/forwardemail/nodejs-dns-over-https-tangerine"target="_blank">Tangerine</a> is the best <ahref="https://nodejs.org"target="_blank">Node.js</a> drop-in replacement for <ahref="https://nodejs.org/api/dns.html#resolveroptions"target="_blank">dns.promises.Resolver</a> using <ahref="https://en.wikipedia.org/wiki/DNS_over_HTTPS"target="_blank">DNS over HTTPS</a> ("DoH") via <ahref="https://github.com/nodejs/undici"target="_blank">undici</a> with built-in retries, timeouts, smart server rotation, <ahref="https://developer.mozilla.org/en-US/docs/Web/API/AbortController"target="_blank">AbortControllers</a>, and caching support for multiple backends (with TTL and purge support).
* Specify default request options based off the library under `requestOptions` below
230
230
* Instance methods of [dns.promises.Resolver](https://nodejs.org/api/dns.html) are mirrored to :tangerine: Tangerine.
231
-
* Resolver methods accept an optional `abortController` argument, which is an instance of [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). Note that :tangerine: Tangerine manages `AbortController` usage internally – so you most likely won't need to pass your own (see [index.js](https://github.com/forwardemail/tangerine/blob/main/index.js) for more insight).
231
+
* Resolver methods accept an optional `abortController` argument, which is an instance of [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). Note that :tangerine: Tangerine manages `AbortController` usage internally – so you most likely won't need to pass your own (see [index.js](https://github.com/forwardemail/nodejs-dns-over-https-tangerine/blob/main/index.js) for more insight).
232
232
* Resolver methods that accept `options` argument also accept an optional `options.purgeCache` option.
233
233
* Resolver methods support a `purgeCache` option as either `options.purgeCache` (Boolean) via `options` argument or `purgeCache` (Boolean) argument – see [API](#api) and [Cache](#cache) for more insight.
234
234
* If set to `true`, then the result will be re-queried and re-cached – see [Cache](#cache) documentation for more insight.
@@ -295,7 +295,7 @@ This mirrors output from <https://github.com/rthalley/dnspython>.
This method was added for DANE and TLSA support. See this [excellent article](https://www.mailhardener.com/kb/dane), [index.js](https://github.com/forwardemail/tangerine/blob/main/index.js), and <https://github.com/nodejs/node/issues/39569> for more insight.
298
+
This method was added for DANE and TLSA support. See this [excellent article](https://www.mailhardener.com/kb/dane), [index.js](https://github.com/forwardemail/nodejs-dns-over-https-tangerine/blob/main/index.js), and <https://github.com/nodejs/node/issues/39569> for more insight.
299
299
300
300
This function returns a Promise that resolves with an Array with parsed values from results:
301
301
@@ -381,7 +381,7 @@ console.log('mx', mx);
381
381
382
382
## Options
383
383
384
-
Similar to the `options` argument from `newdns.promises.Resolver(options)` invocation – :tangerine: Tangerine also has its own options with default `dns` behavior mirrored. See [index.js](https://github.com/forwardemail/tangerine/blob/main/index.js) for more insight into how these options work.
384
+
Similar to the `options` argument from `newdns.promises.Resolver(options)` invocation – :tangerine: Tangerine also has its own options with default `dns` behavior mirrored. See [index.js](https://github.com/forwardemail/nodejs-dns-over-https-tangerine/blob/main/index.js) for more insight into how these options work.
We have written extensive benchmarks to show that :tangerine: Tangerine is as fast as the native Node.js DNS module (with the exception of the `lookup` command). Note that performance is opinionated – since rate limiting plays a factor dependent on the DNS servers you are using and since caching is most likely going to takeover.
525
525
526
-
The latest benchmark results are viewable on GitHub under this repository's [GitHub CI actions logs](https://github.com/forwardemail/tangerine/actions?query=event%3Apush):
526
+
The latest benchmark results are viewable on GitHub under this repository's [GitHub CI actions logs](https://github.com/forwardemail/nodejs-dns-over-https-tangerine/actions?query=event%3Apush):
527
527
528
-
> [Node 16 on ubuntu-latest](https://github.com/forwardemail/tangerine/actions/runs/4297805550/jobs/7491228635#step:6:1)
528
+
> [Node 16 on ubuntu-latest](https://github.com/forwardemail/nodejs-dns-over-https-tangerine/actions/runs/4297805550/jobs/7491228635#step:6:1)
Copy file name to clipboardExpand all lines: index.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1956,7 +1956,7 @@ class Tangerine extends dns.promises.Resolver {
1956
1956
default: {
1957
1957
this.options.logger.error(
1958
1958
newError(
1959
-
`Submit a PR at <https://github.com/forwardemail/tangerine> with proper parsing for ${rrtype} records. You can reference <https://github.com/rthalley/dnspython/tree/master/dns/rdtypes/ANY> for inspiration.`
1959
+
`Submit a PR at <https://github.com/forwardemail/nodejs-dns-over-https-tangerine> with proper parsing for ${rrtype} records. You can reference <https://github.com/rthalley/dnspython/tree/master/dns/rdtypes/ANY> for inspiration.`
0 commit comments