*Abort processGlue is we are not looking for an A, CNAME, or NS record

This commit is contained in:
Derrick Hammer 2022-08-19 12:43:43 -04:00
parent c6ca4f81ca
commit 179b7831b2
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 7 additions and 0 deletions

View File

@ -204,6 +204,13 @@ export default class Handshake extends AbstractResolverModule {
options: ResolverOptions, options: ResolverOptions,
bypassCache: boolean bypassCache: boolean
) { ) {
if (
![DNS_RECORD_TYPE.A, DNS_RECORD_TYPE.CNAME, DNS_RECORD_TYPE.NS].includes(
options.type
)
) {
return;
}
if (isDomain(record.ns) && isIp(record.address)) { if (isDomain(record.ns) && isIp(record.address)) {
let results = await this.resolver.resolve( let results = await this.resolver.resolve(
domain, domain,