Resolver should distinguish timeout from authoritative negative responses and retry on timeout #35
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?
Currently
querySingleTypetreats timeouts and authoritative negative responses (NXDOMAIN, NOERROR+empty) the same way — it silently returns empty records. This loses critical information for dnswatcher's monitoring purpose.The resolver needs to distinguish per-server:
This distinction is core to dnswatcher's purpose: knowing what each DNS server is doing (not responding, responding incorrectly, etc.).
The resolver should:
Fix submitted in PR #36.
The resolver now:
StatusTimeoutfor persistent timeouts (distinct fromStatusError)StatusNXDomain/StatusNoDatafor authoritative negatives without retryNameserverResponse.Errorwith structured failure descriptionsmake checkpasses clean (0 linter issues, all tests pass).