COREDNS-ERRATIC(7)
πΈ COREDNS-ERRATIC(7) πΈ
okay so this is a CoreDNS Plugins manual page, and the plugin it's about is called erratic β yes bestie, that's the whole name, it's giving "chaotic on purpose" and we love that for her π
β¨ NAME β¨
erratic β a plugin that's genuinely useful for testing client behavior π§ͺπ¦ (like, actually β that's the entire job description, no cap).
π DESCRIPTION π
so here's the vibe: erratic hits every single query with a static response β but plot twist, those responses can be delayed, dropped, or truncated. main character energy that keeps you guessing πβ¨
she'll respond to every A or AAAA query. for literally any other type, she's gonna hand you a SERVFAIL response instead β except for AXFR, that one's special π
here's what you actually get back:
- for
Aβ192.0.2.53(that's RFC 5737,https://www.rfc-editor.org/info/rfc5737/) π - for
AAAAβ2001:DB8::53(that's RFC 3849,https://www.rfc-editor.org/info/rfc3849/) π - for an
AXFRrequest β a small zone transfer π
π¦ SYNTAX π¦
erratic {
drop [AMOUNT]
truncate [AMOUNT]
delay [AMOUNT [DURATION]]
}
okay let's break down the three little gremlins inside the block:
dropβ drops 1 per AMOUNT of queries. the default for AMOUNT is2. πtruncateβ truncates 1 per AMOUNT of queries. default for AMOUNT is2. π«Άdelayβ delays 1 per AMOUNT of queries for DURATION. default for AMOUNT is2, and the default for DURATION is100ms. β³
heads up bestie β in the case of a zone transfer andtruncate, the finalSOArecord isn't added to the response. that's just how it is, no notes π
β READY β
this plugin reports readiness to the ready plugin. iconic, communicative, reliable in the way only an unreliable plugin can be π
β¨
π₯ EXAMPLES π₯
drop 1 out of every 3 queries. slay:
example.org {
erratic {
drop 3
}
}
or even shorter if the defaults suit you π β note this only drops queries, it does not delay them:
example.org {
erratic
}
delay 1 in 3 queries for 50ms:
example.org {
erratic {
delay 3 50ms
}
}
delay 1 in 3 and truncate 1 in 5:
example.org {
erratic {
delay 3 5ms
truncate 5
}
}
drop every second query:
example.org {
erratic {
drop 2
truncate 2
}
}
π SEE ALSO π
RFC 3849 β https://www.rfc-editor.org/info/rfc3849/ and RFC 5737 β https://www.rfc-editor.org/info/rfc5737/. go read up, iykyk ππ
okay that's the whole page bestie, mwah π this was CoreDNS, from the CoreDNS Plugins manual, dated October 2026 β no cap, that's literally the version and date, go off πππ
π¦ where this page comes from
- opensuse-leap 16.0: coredns-extras 1.15.0-bp160.1.1 Β· Apache-2.0 AND MPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms