Commit fbb2cf75de for bind
commit fbb2cf75de00b2ddd11c3cee068ec7cc3070d13e
Author: Štěpán Balážik <stepan@isc.org>
Date: Mon Oct 19 12:31:45 2026 +0200
Add the rule on constructing the server first
AsyncDnsServer's constructor configures logging, and a logging call
before it silences every INFO line of the server.
Assisted-by: Claude:claude-fable-5-1
diff --git a/.agents/skills/ans-py/SKILL.md b/.agents/skills/ans-py/SKILL.md
index 3ca592c273..19878b6a17 100644
--- a/.agents/skills/ans-py/SKILL.md
+++ b/.agents/skills/ans-py/SKILL.md
@@ -2110,6 +2110,39 @@ After:
matcher = Domain("b.stale.", "a.b.stale.")
```
+### Construct the server before anything logs
+
+Nothing logs before `AsyncDnsServer` is constructed: its constructor
+is the one place `logging.basicConfig()` is called, and a `logging`
+call before it, from a module-level constant or from setup in
+`main()`, configures the root logger at WARNING first, after which
+every INFO line of the server, every query and response included, is
+dropped and `ans.run` stays empty.
+
+#### Examples
+
+Logging ahead of the server (synthetic). Before:
+
+```python
+# ans2/ans.py, before (synthetic)
+def main() -> None:
+ logging.info("starting the spoofing server")
+ server = AsyncDnsServer()
+ server.install_response_handlers(SpoofHandler())
+ server.run()
+```
+
+After:
+
+```python
+# ans2/ans.py, after (synthetic)
+def main() -> None:
+ server = AsyncDnsServer()
+ logging.info("starting the spoofing server")
+ server.install_response_handlers(SpoofHandler())
+ server.run()
+```
+
### Let the server carry the RCODE and the AA bit
What every handler of a server sets the same way, or what equals the