Skip to content

Commit 11be667

Browse files
Improve documentation with clearer scoring behavior examples
Co-authored-by: thisisjaymehta <31812582+thisisjaymehta@users.noreply.github.com>
1 parent fe91076 commit 11be667

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

docs/reference/checks/dnsbl.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ and contains the following directives:
216216
**Required**
217217

218218
Score to add when this response code is returned. If multiple response codes
219-
are returned by the DNSBL, scores are summed together.
219+
are returned by the DNSBL, and they match different rules, the scores from
220+
all matched rules are summed together. Each rule is counted only once, even
221+
if multiple returned IPs match networks within that rule.
220222

221223
#### message _string_
222224
**Optional**
@@ -245,5 +247,11 @@ zen.spamhaus.org {
245247
}
246248
```
247249

250+
**Scoring behavior:**
251+
- If DNSBL returns `127.0.0.2` only → Score: 10 (matches first rule)
252+
- If DNSBL returns `127.0.0.11` only → Score: 5 (matches second rule)
253+
- If DNSBL returns both `127.0.0.2` and `127.0.0.11` → Score: 15 (both rules match, scores sum)
254+
- If DNSBL returns both `127.0.0.2` and `127.0.0.3` → Score: 10 (same rule matches, counted once)
255+
248256
**Backwards compatibility:** When `response` blocks are not used, the legacy
249257
`responses` and `score` directives work as before.

0 commit comments

Comments
 (0)