Adds DoH capabilities
This commit is contained in:
parent
43cc069300
commit
a6486e6db2
2 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
editor.link_modal.header
Reference in a new issue