mirage / ocaml-dns

OCaml implementation of the DNS protocol
BSD 2-Clause "Simplified" License
105 stars 43 forks source link

client: read /etc/resolv.conf less often #296

Open hannesm opened 2 years ago

hannesm commented 2 years ago

When discussing #291 with @reynir, we figured that /etc/resolv.conf may be read rather often and its content being checksummed (using Digest.string --> MD5).

We thought about various solutions, all increasing the complexity:

It is not clear whether it is worth the effort and complexity, so we'll leave as is -- and if the current code turns out to be a bottleneck, we'll revise it.