serverless-dns / serverless-dns

The RethinkDNS resolver that deploys to Cloudflare Workers, Deno Deploy, Fastly, and Fly.io

Home Page:https://rethinkdns.com/configure

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I keep seeing Google as DNS resolver

HotCakeX opened this issue · comments

I set my custom DNS over HTTPS server for Cloudflare worker to NextDNS and when i'm at the home page of NextDNS website, i keep seeing Google DNS intermittently.

I found a Google resolver in the worker.js

can I safely remove this part or even replace it with another DoH without triggering any problems further down the road?

      CF_DNS_RESOLVER_URL_2: {
        type: "string",
        default: "https://dns.google/dns-query"
      },

Will removing/replacing this part fix my problem?

Thanks in advance

You could set it to the same NextDNS resolver, yes. Set this as an env variable (of the same name) from your Cloudflare Workers dashboard (no need to change code): https://developers.cloudflare.com/workers/platform/environment-variables/