Reduce DNS query timeout and limit root server fan-out (closes #29) #30
Reference in New Issue
Block a user
Delete Branch "fix/reduce-dns-timeout-and-root-fanout"
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?
Changes
queryTimeoutDurationfrom 5s to 2srandomRootServers()— shuffles the full root server list and picks 3rootServerList()call sites withrandomRootServers()maxRetriesremains at 2Closes #29
Code Review: Clean
randomRootServers(), replacing the previous staticrootServerList()[:3]slicemath/rand.Shuffleis appropriate here (no crypto requirement)make checkoutput — all passed ✅