#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

8 releases

new 0.6.9 Dec 18, 2024
0.6.6 Nov 23, 2024
0.5.2 Apr 9, 2024
0.5.0 Feb 23, 2024

#492 in Network programming

Download history 22/week @ 2024-09-16 72/week @ 2024-09-23 554/week @ 2024-09-30 291/week @ 2024-10-07 39/week @ 2024-10-14 392/week @ 2024-10-28 185/week @ 2024-11-04 4/week @ 2024-11-11 281/week @ 2024-11-18 26/week @ 2024-11-25 140/week @ 2024-12-02 174/week @ 2024-12-09

621 downloads per month

GPL-3.0 license

265KB
6K 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.

How to clone this repository

the bin branch contains a lot of large files for pre-compiled binaries, you may want to exclude these large files, you can clone only master branch that contains source code only.

git clone https://github.com/delta4chat/hitdns --single-branch

or just filter these blobs

git clone https://github.com/delta4chat/hitdns --filter=blob:limit=1M

Dependencies

~41–81MB
~1.5M SLoC