v0.1.1
This commit is contained in:
1 parent
fa432bebda
commit
b796a6685e
15 files changed
+390
-153
No files matched your search
@@ -6,13 +6,13 @@ resolver**, a **Forwarder** and any **Hybrid** combination of them – and comes
|
||||
**EasyDNS Tools**, practical replacements for `dig`, `host`, `nslookup`, `delv`,
|
||||
`named-checkzone`, `named-checkconf` and `dnsperf`.
|
||||
|
||||
> Migration from BIND: [docs/migration-from-bind.md](docs/migration-from-bind.md) · Specification gaps: [docs/spec-gaps.md](docs/spec-gaps.md)
|
||||
> Migration from BIND: [docs/migration-from-bind.md](docs/migration-from-bind.md) · Feature status and gaps: [docs/spec-gaps.md](docs/spec-gaps.md)
|
||||
|
||||
## Project status: 0.1.0 – beta, not yet production-certified
|
||||
## Project status: 0.1.1 – first public release, beta
|
||||
|
||||
All mandatory roles from the specification are implemented and covered by automated
|
||||
All DNS roles listed below are implemented and covered by automated
|
||||
tests (unit, integration with real servers on loopback, DNSSEC chains, DoT/DoH, API, CLI,
|
||||
robustness – 97 test cases, `cargo clippy -D warnings` clean). **It has not yet been
|
||||
robustness – 102 test cases, `cargo clippy -D warnings` clean). **It has not yet been
|
||||
verified in production conditions.** Before it can be called production-ready, the items
|
||||
in [Production readiness](#production-readiness) must be completed. Until then use it:
|
||||
|
||||
@@ -25,6 +25,7 @@ in [Production readiness](#production-readiness) must be completed. Until then u
|
||||
## Features
|
||||
|
||||
### Authoritative – Primary (master)
|
||||
|
||||
* BIND-format zone files (`$ORIGIN`, `$TTL`, `$INCLUDE`, parentheses, all common types,
|
||||
DNSKEY/RRSIG/NSEC/NSEC3 and RFC 3597 `\#` generic records)
|
||||
* validation on load: SOA/NS at apex, CNAME conflicts, out-of-zone data, duplicates; lint
|
||||
@@ -45,6 +46,7 @@ in [Production readiness](#production-readiness) must be completed. Until then u
|
||||
automatic re-signing, stable signatures across restarts, `easydns dnssec keygen|ds`
|
||||
|
||||
### Authoritative – Secondary (slave)
|
||||
|
||||
* any number of zones, several primaries per zone with failover
|
||||
* initial AXFR, IXFR with AXFR fallback, NOTIFY (ACL and/or TSIG)
|
||||
* SOA REFRESH / RETRY / EXPIRE; after EXPIRE the zone answers SERVFAIL, never stale data
|
||||
@@ -53,6 +55,7 @@ in [Production readiness](#production-readiness) must be completed. Until then u
|
||||
* status per zone (serial, source, last/next refresh, expiry, last error) in CLI, API, metrics
|
||||
|
||||
### Recursive resolver
|
||||
|
||||
* real iteration from the root hints – no upstream resolver needed
|
||||
* bailiwick checks, random IDs and source ports, glueless delegations, CNAME chains
|
||||
* QNAME minimisation (RFC 9156), EDNS(0), UDP→TCP fallback, budgets and timeouts
|
||||
@@ -62,6 +65,7 @@ in [Production readiness](#production-readiness) must be completed. Until then u
|
||||
* recursion only for allowed clients (default: `192.168.0.0/16`, `10.0.0.0/8`, loopback) – no open resolver
|
||||
|
||||
### Forwarder and hybrid routing
|
||||
|
||||
* upstreams over UDP, TCP, **DoT** (pooled persistent connections) and **DoH** (persistent,
|
||||
multiplexed **HTTP/2**); private CAs; strategies round-robin, fastest, failover, random,
|
||||
priority; health checks and circuit breaker; identical concurrent queries coalesced
|
||||
@@ -71,6 +75,7 @@ in [Production readiness](#production-readiness) must be completed. Until then u
|
||||
* split-horizon **views**, block/allow lists (exact, suffix, wildcard, regex, hosts files)
|
||||
|
||||
### Transport and security
|
||||
|
||||
* UDP/TCP (SO_REUSEPORT socket group per core), **DNS-over-TLS** and **DNS-over-HTTPS**
|
||||
(GET/POST, **HTTP/2** and HTTP/1.1, h2c behind a proxy) listeners on rustls;
|
||||
certificates reloaded automatically after renewal – guide: [docs/secure-dns.md](docs/secure-dns.md)
|
||||
@@ -80,6 +85,7 @@ in [Production readiness](#production-readiness) must be completed. Until then u
|
||||
malformed packets, hardened systemd unit and non-root container
|
||||
|
||||
### Operations
|
||||
|
||||
* `config.yaml` (YAML/JSON) with **`include:`** for zone files (`zones.d/*.yaml`),
|
||||
offline validation with file/line errors, precedence CLI > ENV > file
|
||||
* **hot reload** (SIGHUP / CLI / API) with automatic rollback on errors
|
||||
@@ -91,12 +97,14 @@ in [Production readiness](#production-readiness) must be completed. Until then u
|
||||
block lists, root hints, DNSSEC keys, completions, man page – works locally **without
|
||||
generating or passing an API key** (local control token, API on `127.0.0.1:9953`)
|
||||
* one directory for everything: `/etc/easydns` (config, `zones.d/`, `keys.d/`, `data/zones/`)
|
||||
* packaging: `.deb` built in Docker (`scripts/build-deb.sh`), Dockerfile + compose,
|
||||
systemd units, install script, developer runner `dev.sh`
|
||||
* packages for Debian/Ubuntu, RHEL/Alma/Rocky and SUSE from
|
||||
[repo.linuxiarz.pl](https://repo.linuxiarz.pl), Dockerfile + compose, systemd units,
|
||||
install script, developer runner `dev.sh`
|
||||
|
||||
### EasyDNS Tools
|
||||
|
||||
| Short | Long | Replaces |
|
||||
|---|---|---|
|
||||
| --- | --- | --- |
|
||||
| `ed` | `easydig` | dig (+short, +trace, +dnssec, +tcp, -x, -y TSIG, AXFR, --json/--yaml, --watch, --compare, --benchmark) |
|
||||
| `eh` | `easyhost` | host |
|
||||
| `ens` | `easynslookup` | nslookup (incl. interactive mode) |
|
||||
@@ -112,20 +120,52 @@ in [Production readiness](#production-readiness) must be completed. Until then u
|
||||
|
||||
Short names are installed only when they do not collide with existing commands.
|
||||
|
||||
## Installation
|
||||
|
||||
Signed packages (amd64) are built from this repository and published on
|
||||
**[repo.linuxiarz.pl](https://repo.linuxiarz.pl)**. Source code:
|
||||
[git.linuxiarz.pl/gru/EasyDNS](https://git.linuxiarz.pl/gru/EasyDNS).
|
||||
|
||||
```bash
|
||||
# Debian / Ubuntu
|
||||
curl -fsSL https://repo.linuxiarz.pl/repo-key.gpg | sudo gpg --dearmor --yes -o /usr/share/keyrings/linuxiarz.gpg
|
||||
echo "deb [signed-by=/usr/share/keyrings/linuxiarz.gpg] https://repo.linuxiarz.pl/apt stable main" \
|
||||
| sudo tee /etc/apt/sources.list.d/linuxiarz.list
|
||||
sudo apt update && sudo apt install easydns
|
||||
|
||||
# RHEL / Alma / Rocky
|
||||
sudo rpm --import https://repo.linuxiarz.pl/repo-key.gpg
|
||||
sudo curl -fsSL -o /etc/yum.repos.d/linuxiarz.repo https://repo.linuxiarz.pl/linuxiarz.repo
|
||||
sudo dnf install easydns
|
||||
|
||||
# SUSE / openSUSE
|
||||
sudo rpm --import https://repo.linuxiarz.pl/repo-key.gpg
|
||||
sudo zypper addrepo --refresh --gpgcheck https://repo.linuxiarz.pl/suse/x86_64/ linuxiarz
|
||||
sudo zypper install easydns
|
||||
```
|
||||
|
||||
Updates come with the normal `apt upgrade` / `dnf upgrade` / `zypper update`; your
|
||||
`/etc/easydns` is kept, and a running server is restarted only if the new version accepts
|
||||
its configuration ([upgrading](docs/deployment.md#upgrading)). Other ways to install
|
||||
(source, Docker, tarball): [docs/deployment.md](docs/deployment.md).
|
||||
|
||||
## Quick start
|
||||
|
||||
```bash
|
||||
# development (from source, debug build, throw-away state in .dev/)
|
||||
sudo easydns zone create example.com --ns ns1.example.com=192.0.2.10 --ip 192.0.2.80
|
||||
sudo easydns check-config
|
||||
sudo systemctl enable --now easydns # hybrid: your zones + recursion for the LAN
|
||||
sudo easydns status # no API key needed
|
||||
```
|
||||
|
||||
Port 53 must be free: on hosts with systemd-resolved turn its stub listener off or listen on
|
||||
concrete addresses ([how](docs/deployment.md#port-53-and-systemd-resolved)); stop dnsmasq or
|
||||
BIND first. Development from source:
|
||||
|
||||
```bash
|
||||
./dev.sh run # DNS 127.0.0.1:5353, API :9953, metrics :9090
|
||||
./dev.sh q www.example.com # query it with easydig
|
||||
./dev.sh api /status
|
||||
|
||||
# package
|
||||
scripts/build-deb.sh --test # .deb built in Docker → dist/
|
||||
sudo apt install ./dist/easydns_0.1.0-1_amd64.deb
|
||||
sudo easydns zone create example.com --ns ns1.example.com=192.0.2.10 --ip 192.0.2.80
|
||||
sudo systemctl enable --now easydns # hybrid: your zones + recursion for the LAN
|
||||
sudo easydns status # no API key needed
|
||||
```
|
||||
|
||||
The installed default ([config/config.yaml](config/config.yaml)): hybrid mode,
|
||||
@@ -142,48 +182,50 @@ TSIG key; keys are optional extras.
|
||||
EasyDNS will be declared production-ready (1.0) when all of the following are done and
|
||||
documented in [docs/testing.md](docs/testing.md):
|
||||
|
||||
- [ ] `scripts/e2e.sh` passes against real BIND tools (`dig`, `host`, `nslookup`)
|
||||
- [ ] interoperability: BIND/Knot/PowerDNS primary → EasyDNS secondary and
|
||||
* [ ] `scripts/e2e.sh` passes against real BIND tools (`dig`, `host`, `nslookup`)
|
||||
* [ ] interoperability: BIND/Knot/PowerDNS primary → EasyDNS secondary and
|
||||
EasyDNS primary → BIND secondary (AXFR, IXFR, NOTIFY, TSIG, signed zones)
|
||||
- [ ] validating resolver tested on the real Internet (DNSSEC test domains, broken chains)
|
||||
- [ ] 72-hour soak test at sustained load: no growth of memory, tasks or file descriptors
|
||||
- [ ] `cargo fuzz` campaign (≥ 24 h per target) without findings
|
||||
- [ ] `.deb` built and installed on Debian 12 / Ubuntu 22.04 & 24.04, amd64 and arm64;
|
||||
* [ ] validating resolver tested on the real Internet (DNSSEC test domains, broken chains)
|
||||
* [ ] 72-hour soak test at sustained load: no growth of memory, tasks or file descriptors
|
||||
* [ ] `cargo fuzz` campaign (≥ 24 h per target) without findings
|
||||
* [ ] packages installed on Debian 12 / Ubuntu 22.04 & 24.04 / Rocky 9 / openSUSE, amd64 and arm64;
|
||||
systemd hardening verified; upgrade and rollback tested
|
||||
- [ ] CI running (fmt, clippy, tests, cargo-deny, ARM64, musl)
|
||||
- [ ] external security review of the parser, TSIG and the API
|
||||
- [ ] at least one month as an additional secondary / partial resolver in a real network
|
||||
* [ ] CI running (fmt, clippy, tests, cargo-deny, ARM64, musl)
|
||||
* [ ] external security review of the parser, TSIG and the API
|
||||
* [ ] at least one month as an additional secondary / partial resolver in a real network
|
||||
|
||||
## Roadmap
|
||||
|
||||
**0.2 – verification and hardening** (the list above), plus fixes found on the way.
|
||||
**0.X – verification and hardening** (the list above), plus fixes found on the way.
|
||||
|
||||
**0.X – performance** ([measurements and estimates vs BIND](docs/performance.md))
|
||||
|
||||
**0.3 – performance** ([estimates vs BIND](docs/performance.md))
|
||||
* ✅ done (Unreleased): SO_REUSEPORT socket group per core, sharded cache and rate limiter, query coalescing
|
||||
* ✅ done (Unreleased): encoded-answer cache with inline UDP fast path (2.2× / 1.65× less CPU per query),
|
||||
batched `recvmmsg`/`sendmmsg` on Linux, resolver prefetch
|
||||
* multi-core benchmark against BIND: `scripts/bench-vs-bind.sh` (to be run on 8+ cores)
|
||||
* cache-miss path: allocation-free parsing, pre-encoded RRsets
|
||||
* compact zone storage for large zones (faster loading, less memory)
|
||||
* resolver: aggressive NSEC/NSEC3 (RFC 8198)
|
||||
|
||||
**0.4 – DNS features**
|
||||
**0.X – DNS features**
|
||||
|
||||
* NSEC3 signing, automated key rollover (ZSK/KSK), CDS/CDNSKEY, RFC 5011 trust anchors
|
||||
* DNAME, `$GENERATE`, Ed448
|
||||
* RPZ (response policy zones), per-subnet and per-record-type policies, response RRL
|
||||
* ✅ done (Unreleased): `update-policy`-style DDNS rules, IP-only updates, BIND key files
|
||||
* UPDATE forwarding from secondaries; reading BIND `zone { … }` statements directly
|
||||
* per-view recursion/forwarding policy, catalog zones (RFC 9432) for provisioning secondaries
|
||||
|
||||
**0.5 – transports and operations**
|
||||
* ✅ done (Unreleased): DoH over HTTP/2 (server and client), persistent DoT/DoH upstream
|
||||
connections, automatic certificate reload
|
||||
**0.X – transports and operations**
|
||||
|
||||
* DNS-over-QUIC (RFC 9250), DoH3, upstream certificate pinning
|
||||
* API: token management endpoints, JWT/mTLS, users; UNIX socket for the CLI
|
||||
* persistent cache, built-in block list scheduler, backup/restore commands
|
||||
* message translations (i18n), man pages for every tool, `.rpm` packages
|
||||
* message translations (i18n), man pages for every tool, arm64 packages
|
||||
|
||||
What 0.1.1 already contains (SO_REUSEPORT socket groups, the encoded-answer cache,
|
||||
prefetch, `update-policy` rules, DoH over HTTP/2, pooled DoT/DoH upstreams, ...) is listed in
|
||||
the [changelog](CHANGELOG.md).
|
||||
|
||||
**Later**
|
||||
|
||||
* web panel (separate project, on top of the REST API)
|
||||
* database backends (PostgreSQL/SQLite) for very large or multi-tenant deployments
|
||||
* clustering helpers (multi-primary with catalog zones), anycast health integration
|
||||
@@ -251,7 +293,7 @@ restricted permissions, runs unprivileged with `CAP_NET_BIND_SERVICE`. Details:
|
||||
[security](docs/security.md) · [api](docs/api.md) · [cli-tools](docs/cli-tools.md) ·
|
||||
[monitoring](docs/monitoring.md) · [deployment](docs/deployment.md) ·
|
||||
[troubleshooting](docs/troubleshooting.md) · [testing](docs/testing.md) ·
|
||||
[**migration from BIND**](docs/migration-from-bind.md) · [spec gaps](docs/spec-gaps.md) ·
|
||||
[**migration from BIND**](docs/migration-from-bind.md) · [feature status](docs/spec-gaps.md) ·
|
||||
[**operations: master & resolution**](docs/operations.md) · [**zone transfer variants**](docs/zone-transfer-variants.md) ·
|
||||
[**performance vs BIND (estimates)**](docs/performance.md) ·
|
||||
[**encrypted DNS: DoT/DoH**](docs/secure-dns.md)
|
||||
|
||||
Reference in new issue
Block a user