#dns-resolver #dns-server #dns-query #low-latency #dns-resolution #cache #hit

app hitdns

hitdns is a DNS forward server optimized for cache hit ratio and query latency

3 releases

new 0.6.5 Nov 20, 2024
0.6.0 Oct 8, 2024
0.5.2 Apr 9, 2024
0.5.0 Feb 23, 2024

#477 in Network programming

Download history 84/week @ 2024-07-27 142/week @ 2024-08-03 5/week @ 2024-08-10 21/week @ 2024-09-14 57/week @ 2024-09-21 296/week @ 2024-09-28 535/week @ 2024-10-05 67/week @ 2024-10-12 2/week @ 2024-10-19 297/week @ 2024-10-26 263/week @ 2024-11-02 21/week @ 2024-11-09

586 downloads per month

GPL-3.0 license

260KB
5.5K SLoC

Hit DNS - Probably the world's fastest DNS forwarder

crates.io

License

GitHub Workflow Status GitHub Tag GitHub last commit GitHub code size in bytes

hitdns has low query latency and a high cache hit rate. This is because it will return the last available DNS resolution result whenever possible (regardless of whether its TTL has expired) and if it does expired, it will start an update task in the background, instead of "waiting for the upstream DNS recursor to return the latest result" like other DNS resolvers (e.g. dnsmasq).

So hitdns users will only experience delays the first time they query a domain they've never queried before, and every time they query this domain after that, they'll get near-instantaneous response latency.

Dependencies

~40–83MB
~1.5M SLoC