Adds DoH capabilities

This commit is contained in:
Pierre Lannoy 2023-12-13 18:41:16 +01:00
commit b9992f4f27
Signed by: Pierre Lannoy
GPG key ID: D27231EF87D53F31

View file

@ -66,7 +66,7 @@ export async function findTxtRecord(host) {
const resolver = new DohResolver('https://doh.hosterra.tech/dns-query');
const resolved = await resolver.query( host );
console.log(resolved);
if (resolved.response.answers) {
/*if (resolved.response.answers) {
for (const head of resolved.response.answers) {
const txtData = parseTxtRecordData(head.data);
if (!txtData[recordParamDestUrl]) continue;
@ -75,7 +75,7 @@ export async function findTxtRecord(host) {
httpStatus: txtData[recordParamHttpStatus],
};
}
}
}*/
/*resolver.query( host)
.then(response => {