Skip to content

Commit cf27645

Browse files
committed
DNS Resolver env setting, fixes inconsistencies with results
1 parent f4f37c3 commit cf27645

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.env.development

+4-1
Original file line numberDiff line numberDiff line change
@@ -183,4 +183,7 @@ CPU_SHARES_IMPORTANT=1024
183183
CPU_SHARES_MODERATE=512
184184
CPU_SHARES_LOW=256
185185

186-
NEXT_TELEMETRY_DISABLED=1
186+
NEXT_TELEMETRY_DISABLED=1
187+
188+
# DNS resolver for custom domain verification
189+
DNS_RESOLVER=1.1.1.1

.env.production

+3
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ DB_APP_CONNECTION_LIMIT=4
2323
DB_WORKER_CONNECTION_LIMIT=2
2424
DB_TRANSACTION_TIMEOUT=10000
2525
NEXT_TELEMETRY_DISABLED=1
26+
27+
# DNS resolver for custom domain verification
28+
DNS_RESOLVER=1.1.1.1

worker/domainVerification.js

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ async function verifyDomain (domainName, verificationTxt, cname) {
4646
error: null
4747
}
4848

49+
dnsPromises.setServers([process.env.DNS_RESOLVER || '1.1.1.1']) // cloudflare DNS resolver
50+
4951
// TXT Records checking
5052
// TODO: we should give a randomly generated string to the user and check if it's included in the TXT record
5153
try {

0 commit comments

Comments
 (0)