Adds DoH capabilities
This commit is contained in:
parent
6f4e0818cf
commit
7e49881473
1 changed files with 1 additions and 2 deletions
|
|
@ -66,8 +66,7 @@ export async function findTxtRecord(host) {
|
||||||
const resolver = new DohResolver('https://doh.hosterra.tech/dns-query');
|
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);
|
console.log(resolved);
|
||||||
process.exit(0);
|
throw new Error(resolved.toString());
|
||||||
throw new Error(resolved);
|
|
||||||
/*if (resolved.response.answers) {
|
/*if (resolved.response.answers) {
|
||||||
for (const head of resolved.response.answers) {
|
for (const head of resolved.response.answers) {
|
||||||
const txtData = parseTxtRecordData(head.data);
|
const txtData = parseTxtRecordData(head.data);
|
||||||
|
|
|
||||||
Loading…
Add table
editor.link_modal.header
Reference in a new issue