mirror of https://github.com/waku-org/js-waku.git
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:
parent
5fae073ebd
commit
cc1d8bb3d5
|
@ -5,6 +5,7 @@
|
||||||
"words": [
|
"words": [
|
||||||
"abortable",
|
"abortable",
|
||||||
"Alives",
|
"Alives",
|
||||||
|
"ahadns",
|
||||||
"asym",
|
"asym",
|
||||||
"backoff",
|
"backoff",
|
||||||
"backoffs",
|
"backoffs",
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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, {
|
||||||
|
|
Loading…
Reference in New Issue