Switch DNS lookup service

This commit is contained in:
Yarmo Mackenbach 2020-06-27 17:23:57 +02:00
parent e71df8b1a6
commit 543e768981

View file

@ -252,7 +252,7 @@ async function verifyProof(url, fingerprint) {
if (/^dns:/.test(url)) { if (/^dns:/.test(url)) {
output.type = "website"; output.type = "website";
output.display = url.replace(/dns:/, '').replace(/\?type=TXT/, ''); output.display = url.replace(/dns:/, '').replace(/\?type=TXT/, '');
output.proofUrl = `https://dns.google.com/resolve?name=${output.display}&type=TXT`; output.proofUrl = `https://dns.shivering-isles.com/dns-query?name=${output.display}&type=TXT`;
output.proofUrlFetch = output.proofUrl; output.proofUrlFetch = output.proofUrl;
output.url = `https://${output.display}`; output.url = `https://${output.display}`;