COREDNS-CANCEL(7)
COREDNS-CANCEL(7) π
okay bestie, welcome to the manual page for coredns-cancel(7) from CoreDNS Plugins β yes, that's the whole title vibe, and we're getting into it β¨
πΈ NAME πΈ
cancel β cancels a request's context after 5001 milliseconds.
π DESCRIPTION π
The cancel plugin creates a canceling context for each request. It adds a timeout that gets triggered after 5001 milliseconds.
The 5001 number was chosen because the default timeout for DNS clients is 5 seconds, after that they give up.
A plugin interested in the cancellation status should call plugin.Done() on the context. If the context was canceled due to a timeout the plugin should not write anything back to the client and return a value indicating CoreDNS should not either; a zero return value should suffice for that.
β¨ SYNTAX β¨
cancel [TIMEOUT]
TIMEOUTβ allows setting a custom timeout. The default timeout is5001 milliseconds(5001 ms).
π EXAMPLES π
example.org {
cancel
whoami
}
Or with a custom timeout:
example.org {
cancel 1s
whoami
}
π¦ SEE ALSO π¦
The Go documentation for the context package.
That's the whole vibe: source/version CoreDNS, dated March 2026, manual page COREDNS-CANCEL(7) β signing off, bestie π«Άπ
π¦ where this page comes from
- nixpkgs unstable: coredns 1.14.7
- 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