From c9bc214e8678af3862711ce2cb49eefb111b769b Mon Sep 17 00:00:00 2001 From: Nawaz Dhandala Date: Fri, 13 Feb 2026 13:57:31 +0000 Subject: [PATCH] fix: Correct CAA record resolution method and typo in value formatting --- Probe/Utils/Monitors/MonitorTypes/DnsMonitor.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Probe/Utils/Monitors/MonitorTypes/DnsMonitor.ts b/Probe/Utils/Monitors/MonitorTypes/DnsMonitor.ts index e5a63613fe..2e84171a6b 100644 --- a/Probe/Utils/Monitors/MonitorTypes/DnsMonitor.ts +++ b/Probe/Utils/Monitors/MonitorTypes/DnsMonitor.ts @@ -263,13 +263,14 @@ export default class DnsMonitorUtil { break; } case DnsRecordType.CAA: { + // resolveCaa is not on the Resolver class type, use standalone function const results: Array = - await resolver.resolveCaa(queryName); + await dns.promises.resolveCaa(queryName); for (const result of results) { records.push({ type: DnsRecordType.CAA, value: - `${result.critical} ${result.issue || result.issuewild || result.iodef || ""}`.trim(), + `${result.critial} ${result.issue || result.issuewild || result.iodef || ""}`.trim(), }); } break;