feat: change DoH DNS provider (#1131)

* fix: change DoH DNS provider
opendns did not support CORS -- switched it with AhaDNS that does not
persist logs

* Update packages/dns-discovery/src/dns_over_https.ts

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>

* add ahadns to cspell

* increase timeout on compliance test
possibly the new dns provider we use is taking longer than
opendns to resolve is why the test did not pass with
5000ms

Co-authored-by: fryorcraken.eth <110212804+fryorcraken@users.noreply.github.com>
This commit is contained in:
Danish Arora 2023-01-24 23:42:21 +05:30 committed by GitHub
parent 5fae073ebd
commit cc1d8bb3d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -5,6 +5,7 @@
"words": [ "words": [
"abortable", "abortable",
"Alives", "Alives",
"ahadns",
"asym", "asym",
"backoff", "backoff",
"backoffs", "backoffs",

View File

@ -16,10 +16,10 @@ export class DnsOverHttps implements DnsClient {
*/ */
static DefaultEndpoints: Endpoint[] = [ static DefaultEndpoints: Endpoint[] = [
toEndpoint({ toEndpoint({
name: "cisco-doh", name: "AhaDNS",
protocol: "https:", protocol: "https:",
host: "doh.opendns.com", host: "doh.la.ahadns.net",
ipv4: "146.112.41.2", ipv4: "45.67.219.208",
}), }),
toEndpoint({ toEndpoint({
name: "cloudflare", name: "cloudflare",

View File

@ -9,7 +9,7 @@ const enrTree = `enrtree://${publicKey}@${fqdn}`;
const maxQuantity = 3; const maxQuantity = 3;
describe("DNS Discovery: Compliance Test", async function () { describe("DNS Discovery: Compliance Test", async function () {
this.timeout(5000); this.timeout(10000);
tests({ tests({
async setup() { async setup() {
return wakuDnsDiscovery(enrTree, { return wakuDnsDiscovery(enrTree, {