Adds DoH capabilities

This commit is contained in:
Pierre Lannoy 2023-12-13 18:38:00 +01:00
commit a6486e6db2
Signed by: Pierre Lannoy
GPG key ID: D27231EF87D53F31
2 changed files with 2 additions and 3 deletions

View file

@ -64,8 +64,8 @@ const parseTxtRecordData = (value) => {
*/
export async function findTxtRecord(host) {
const resolver = new DohResolver('https://doh.hosterra.tech/dns-query');
const resolved = await resolver.query( host);
const resolved = await resolver.query( host );
console.log(resolved);
if (resolved.response.answers) {
for (const head of resolved.response.answers) {
const txtData = parseTxtRecordData(head.data);