*Update dist
This commit is contained in:
parent
faad982f0f
commit
cef692b7ec
|
@ -116,20 +116,28 @@ export default class Handshake extends AbstractResolverModule {
|
||||||
if (!isIcann) {
|
if (!isIcann) {
|
||||||
const hnsNs = await this.resolver.resolve(foundDomain, options);
|
const hnsNs = await this.resolver.resolve(foundDomain, options);
|
||||||
if (hnsNs.records.length) {
|
if (hnsNs.records.length) {
|
||||||
return this.resolver.resolve(domain, {
|
let icannRecords = await this.resolver.resolve(domain, {
|
||||||
...options,
|
...options,
|
||||||
options: {
|
options: {
|
||||||
subquery: true,
|
subquery: true,
|
||||||
nameserver: hnsNs.records.pop()?.value,
|
nameserver: hnsNs.records.pop()?.value,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
if (icannRecords.records.length) {
|
||||||
|
records.push.apply(records, icannRecords.records);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return resolverEmptyResponse();
|
return resolverEmptyResponse();
|
||||||
}
|
}
|
||||||
return this.resolver.resolve(domain, {
|
let icannRecords = await this.resolver.resolve(domain, {
|
||||||
...options,
|
...options,
|
||||||
options: { subquery: true, nameserver: foundDomain },
|
options: { subquery: true, nameserver: foundDomain },
|
||||||
});
|
});
|
||||||
|
if (icannRecords.records.length) {
|
||||||
|
records.push.apply(records, icannRecords.records);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
return resolverEmptyResponse();
|
||||||
}
|
}
|
||||||
let result = await this.resolver.resolve(record.ns, options, bypassCache);
|
let result = await this.resolver.resolve(record.ns, options, bypassCache);
|
||||||
if (!result.records.length) {
|
if (!result.records.length) {
|
||||||
|
|
Loading…
Reference in New Issue