Document the no-DNS-mocking policy in the README #94
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Project policy (per sneak, 2026-08-07): DNS is never mocked in dnswatcher. No mock resolvers, no fake DNS servers, no stubbed lookups — not in tests, not anywhere. The entire purpose of dnswatcher is correct behavior against the real DNS, so tests exercise real resolution against live nameservers. Flaky live tests are a robustness problem to be fixed with robustness (retries, multiple nameservers, timeouts) or explicit opt-in gating decided by the owner — never with mocks.
This policy is not currently written down anywhere in the repo, so workers and contributors keep proposing mocked/hermetic DNS tests.
Definition of done
README.mdhas a prominent, unmissable section near the top with its own heading (e.g. "## No DNS mocking. Ever.") stating:make fmt.make checkis green.(closes #N)referencing this issue.