Repository navigation
fix(dnsbl): show a blocklist refusal as degraded, not down - #993
Merged
Merged
Conversation
…nswer (fclairamb/solidping-business#108) A zone answering only with a reserved 127.255.255.x code (Spamhaus refusing a public resolver, rate limit, malformed query) made the check Timeout when it was the only zone, and was silently ignored (Up) when another zone was clean. classifyStatus (checkdnsbl/checker.go) now returns StatusWarning when no zone lists the target and at least one refused with such a code; the output `message` names each zone, code, meaning and fix. Plain timeouts/SERVFAILs keep the old verdicts (Up beside a clean zone, Timeout when every zone fails). The new and updated table cases in checker_test.go fail before the fix. Docs updated. Closes fclairamb/solidping-business#108 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #990: merge it first.
Closes fclairamb/solidping-business#108
Summary
dnsbl: when no zone lists the target but at least one blocklist answers with a127.255.255.xrefusal code (Spamhaus: public resolver refused, rate limit, malformed query), the check is now Warning (rolled up as Degraded) instead of Timeout/Up.messageper refused zone: code, meaning, fix (private resolver vianameserver, or a Spamhaus DQS key).web/docs/docs/features/check-types.mdexplains the degraded state..254, refused + clean, refused + timeout, listed anywhere.Decided by autopilot
127.255.255.xrefusal is enough for Warning, even next to timed-out zones; a listing anywhere stays Down.🤖 Generated with Claude Code