Improve DNS output: distinguish NS resolution failures from domain errors (#20)
CI / test (push) Failing after 2m19s

This commit was merged in pull request #20.
This commit is contained in:
2026-06-08 05:59:33 +00:00
parent d6063eb636
commit 25e6039bde
7 changed files with 32 additions and 6 deletions
+2
View File
@@ -246,6 +246,7 @@ func TestResponseIsTerminal(t *testing.T) {
{RespNXDOMAIN, true},
{RespSERVFAIL, true},
{RespError, true},
{RespNSResolutionFailed, true},
{RespReferral, false},
{RespCNAMEFollow, false},
}
@@ -272,6 +273,7 @@ func TestResponseTypeString(t *testing.T) {
{RespNXDOMAIN, "nxdomain"},
{RespSERVFAIL, "servfail"},
{RespError, "error"},
{RespNSResolutionFailed, "ns_error"},
}
for _, tt := range tests {