From d706c7a3b35f48225cfe7dc91960e58657056bbe Mon Sep 17 00:00:00 2001 From: Rasmus Dahlberg Date: Sun, 2 Apr 2023 11:54:09 +0200 Subject: Add notes --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 15d6f79..bd0f755 100644 --- a/README.md +++ b/README.md @@ -135,6 +135,21 @@ used here in a subsequent run. For example, with `-C 60s` and an average of 100 domains/s, it would be wise to roll-back _at least_ 6000 lines. This should be a last-resort option, and is mainly here to sanity-check long measurements. +### Misc notes + +We use the default `net.Dial` function, which in turn uses +[goLookupIPCNAMEOrder][] for DNS lookups with the recursive name servers in +`/etc/resolve.conf`. For example, with + + $ cat /etc/resolve.conf + nameserver 8.8.8.8 + nameserver 8.8.4.4 + +the query will first be directed to `8.8.8.8`; then `8.8.4.4` if no valid answer +is available yet ([lines 663-778][]). + +[goLookupIPCNAMEOrder]: https://github.com/golang/go/blob/8edcdddb23c6d3f786b465c43b49e8d9a0015082/src/net/dnsclient_unix.go#L595-L804 +[lines 663-778]: https://github.com/golang/go/blob/8edcdddb23c6d3f786b465c43b49e8d9a0015082/src/net/dnsclient_unix.go#L663-L778 ## Contact -- cgit v1.2.3