Adds DoH capabilities

This commit is contained in:
Pierre Lannoy 2023-12-13 19:02:51 +01:00
commit 4919f0c600
Signed by: Pierre Lannoy
GPG key ID: D27231EF87D53F31

View file

@ -64,7 +64,7 @@ const parseTxtRecordData = (value) => {
*/
export async function findTxtRecord(host) {
const resolver = new DohResolver('https://doh.hosterra.tech/dns-query');
resolver.query( host)
/*resolver.query( host)
.then(response => {
response.answers.forEach(ans => {
throw new Error(ans)
@ -79,7 +79,7 @@ export async function findTxtRecord(host) {
});
})
.catch(throw new Error(err));
.catch(throw new Error(err));*/
//const resolved = await resolver.query( host );