aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 11:54:09 +0200
committerRasmus Dahlberg <rasmus@rgdd.se>2023-04-02 11:54:09 +0200
commitd706c7a3b35f48225cfe7dc91960e58657056bbe (patch)
tree48fc81f78a72d22f5a70dc890d2ba31f0a948557
parent6f0064b1401788dcc91fcd54da3b4702734b13c3 (diff)
Add notes
-rw-r--r--README.md15
1 files changed, 15 insertions, 0 deletions
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