You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support NS, MX and TXT record types with a dangling-NS takeover hint #194
Only A, AAAA and CNAME are supported. A delegated subzone whose NS points at an unregistered nameserver is a classic takeover that CNAME-only scanning misses; the standard library already offers LookupNS, LookupMX and LookupTXT.
docs/ROADMAP.md "Known limitations" (test server models only A/AAAA/CNAME)
Proposal
Add NS first, with a dangling-ns takeover hint when the NS host is NXDOMAIN, then MX and TXT. Extend internal/dnstest replies and the lab dnsserver accordingly. Extend queriesPerType so -rate stays exact and add SARIF rule ids for the new hint.
Who benefits
Takeover hunters and monitoring users; complements the CNAME fingerprint work in #134.
Open questions
Whether NS lookups should be on by default or only with -type NS
Acceptance criteria
-type NS resolves and reports NS records
Dangling NS produces a takeover hint and a SARIF result
-type now takes NS, MX and TXT, at one query each under -rate.
MX values read <preference> <host>.
With NS, a delegation whose name server returns NXDOMAIN gets a dangling-ns takeover hint. -sarif reports it under a subenum/dangling-ns rule.
The test DNS server answers NS, MX and TXT. Lab scenarios accept NS, MX and TXT records. Simulation invents MX and TXT records.
On the open question: NS stays opt-in through -type. The default is still A,AAAA.
Limitation (documented in the README and ROADMAP): a recursive resolver usually answers SERVFAIL for a subzone whose every name server is gone. That case is reported as inconclusive, not flagged.
Verified with TestResolveNSMXTXT (resolver plus dangling-ns hint), TestAnswerNSMXTXT and the new parse cases (lab zone), the SARIF writer test, and TestE2ELabDanglingNS (CLI against a lab zone with -sarif). Also ran the full go test ./..., -race on the touched packages, and golangci-lint run (0 issues).
Activity
TMHSDigital commentedon Nov 11, 2026
Fixed in ffcdc8d.
-typenow takesNS,MXandTXT, at one query each under-rate.<preference> <host>.NS, a delegation whose name server returns NXDOMAIN gets adangling-nstakeover hint.-sarifreports it under asubenum/dangling-nsrule.NS,MXandTXTrecords. Simulation invents MX and TXT records.-type. The default is stillA,AAAA.Verified with
TestResolveNSMXTXT(resolver plus dangling-ns hint),TestAnswerNSMXTXTand the new parse cases (lab zone), the SARIF writer test, andTestE2ELabDanglingNS(CLI against a lab zone with-sarif). Also ran the fullgo test ./...,-raceon the touched packages, andgolangci-lint run(0 issues).docs(architecture): describe the engine as it is on main (#228)
docs(scan,output): correct two stale comments (#233)