update readme
docker / docker (push) Successful in 2m10s

This commit is contained in:
tchivert committed 2026-10-11 22:38:00 +00:00
1 parent 24443e302b
commit 2cc8bc6b1b
1 file changed
+6 -7
+6 -7
View File
@@ -1,15 +1,14 @@
# rdns-go
rdns is a caching, forwarding DNS resolver written in Go. It acts as a DNS server, forwarding DNS queries to configured upstream nameservers and caching the responses (including negative ones).
rdns is a caching, forwarding DNS resolver written in Go. It acts as a DNS server, forwarding DNS queries to configured upstream nameservers and caching the responses.
## Features
- Caching of positive and negative (NXDOMAIN/NODATA) responses; the cache lifetime is controlled by `-t` and the TTLs of cached responses are decremented by the time spent in the cache
- EDNS handling per RFC 6891: responses to EDNS queries always carry an OPT record advertising the responder's payload size and echoing the query's DO bit; responses to non-EDNS queries never carry an OPT record; OPT records (including their options) are never cached or forwarded, and UDP responses exceeding the client's advertised payload size are truncated with the TC bit set so clients retry over TCP
- EDNS COOKIE support (RFC 7873, RFC 9018): rdns terminates cookie processing towards clients — it echoes the client cookie of each query, mints its own RFC 9018 server cookies (SipHash-2-4 over client cookie, version, timestamp and client IP, keyed with an hourly-rotated server secret), and never relays upstream server cookies. Cached responses get a fresh cookie built for the current client. Queries without a COOKIE option get responses without one; malformed COOKIE options are answered with FORMERR (RFC 7873 section 5.2.2), and question-less COOKIE queries are answered as server-cookie learning probes (RFC 7873 section 5.4, BADCOOKIE when re-establishing an invalid server cookie)
- No DNSSEC validation: the AD bit is always cleared in responses (RFC 6840 section 5.8)
- DNS responses caching
- Roundrobin accross multiple DNS servers
- DNS-over-TLS to reach the DNS servers
- Blocklist, custom zones and hosts files
- Prometheus metrics (optional)
- Prometheus metrics
## Building
@@ -72,4 +71,4 @@ This project uses code from [miekg/dns](https://github.com/miekg/dns) and [patri
## License
This project is licensed under the MIT License. See the [LICENSE](https://git.rznet.fr/razian/rdns-go/src/branch/main/LICENSE) file for more information.
This project is licensed under the MIT License. See the [LICENSE](https://git.rznet.fr/tchivert/rdns-go/src/branch/main/LICENSE) file for more information.