# Test stack Corefile -- isolated from the production Corefile by virtue # of running in a separate docker-compose project on different ports. # # Plugin chain semantics: # - auto loads test.example.com.zone from /zones; reload every 5s # so we see UPDATE-induced changes promptly during smoke tests # - rfc2136 intercepts UPDATE opcode; passes all queries through to auto # # Plugin.cfg order (set in coredns/Dockerfile) puts rfc2136 BEFORE auto AND # BEFORE cache, so UPDATE messages reach our handler before anything else. . { auto { directory /zones (.*)\.zone {1} reload 5s } rfc2136 test.example.com { zones-dir /zones tsig-key acme-update-key. hmac-sha256 {$ACME_TSIG_SECRET} ttl 60 # Auto-commit OFF in test: there's no git repo at /zones inside # the container, and we don't want spurious commits during smoke # tests. End-to-end auto-commit testing happens on dell01. auto-commit false } log errors }