v0.1.1
This commit is contained in:
1 parent
fa432bebda
commit
b796a6685e
15 files changed
+390
-153
No files matched your search
+52
-9
@@ -1,9 +1,33 @@
|
||||
# Deployment
|
||||
|
||||
## After installing the .deb package
|
||||
## Installing from repo.linuxiarz.pl
|
||||
|
||||
Signed packages for Debian/Ubuntu, RHEL/Alma/Rocky and SUSE (amd64) are built from
|
||||
https://git.linuxiarz.pl/gru/EasyDNS and published on https://repo.linuxiarz.pl.
|
||||
|
||||
```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
|
||||
```
|
||||
|
||||
## After installing the package
|
||||
|
||||
The service is not started automatically (port 53 is often in use, see below).
|
||||
|
||||
```bash
|
||||
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
|
||||
sudo easydns status # no key to generate or pass
|
||||
@@ -12,20 +36,38 @@ easydig @127.0.0.1 example.com SOA +short
|
||||
The package installs the default hybrid configuration (`/etc/easydns/config.yaml`:
|
||||
`0.0.0.0:53` + `[::1]:53`, recursion for `192.168.0.0/16`, `10.0.0.0/8`, `127.0.0.1`),
|
||||
creates `/etc/easydns/{zones.d,keys.d,data/zones}` and the `easydns` user. Layout:
|
||||
[configuration.md](configuration.md#default-installation-layout). On hosts where
|
||||
systemd-resolved occupies `127.0.0.53:53` there is no conflict (different address); if
|
||||
another DNS server listens on `0.0.0.0:53`, stop it or change `server.listen`.
|
||||
[configuration.md](configuration.md#default-installation-layout). Example configurations
|
||||
are in `/usr/share/doc/easydns/examples/`.
|
||||
|
||||
### Port 53 and systemd-resolved
|
||||
|
||||
The default `0.0.0.0:53` cannot be bound while another service holds any address on port 53 –
|
||||
including the `127.0.0.53:53` stub of systemd-resolved (Ubuntu, Fedora, some Debian
|
||||
installs); the server then stops with `Address already in use`. Either turn the stub off and
|
||||
let the host use EasyDNS:
|
||||
|
||||
```bash
|
||||
sudo install -d /etc/systemd/resolved.conf.d
|
||||
printf '[Resolve]\nDNSStubListener=no\nDNS=127.0.0.1\n' | sudo tee /etc/systemd/resolved.conf.d/easydns.conf
|
||||
sudo systemctl restart systemd-resolved
|
||||
sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
|
||||
```
|
||||
|
||||
or list concrete addresses in `server.listen` (for example `["192.0.2.53:53", "127.0.0.1:53"]`),
|
||||
which do not collide with `127.0.0.53`. dnsmasq, BIND or Unbound on port 53 must be stopped
|
||||
or moved the same way. Check what holds the port: `sudo ss -lntup 'sport = :53'`.
|
||||
|
||||
## Upgrading the package (keeping your configuration)
|
||||
|
||||
```bash
|
||||
sudo tar czf /root/easydns-backup-$(date +%F).tgz /etc/easydns # config, zones, keys, data
|
||||
scripts/build-deb.sh # → dist/easydns_<ver>_<arch>.deb
|
||||
sudo apt install -o Dpkg::Options::=--force-confold ./dist/easydns_*_amd64.deb
|
||||
sudo apt update && sudo apt install -o Dpkg::Options::=--force-confold easydns
|
||||
# RHEL: sudo dnf upgrade easydns SUSE: sudo zypper update easydns
|
||||
```
|
||||
* `/etc/easydns/config.yaml` and `root.hints` are conffiles: `--force-confold` keeps your
|
||||
version without asking; the new default is saved next to it as `config.yaml.dpkg-dist`
|
||||
(without the option dpkg asks – answer **N** to keep yours).
|
||||
(without the option dpkg asks – answer **N** to keep yours). RPM keeps a modified file and
|
||||
writes the new default as `config.yaml.rpmnew`.
|
||||
* Files in `zones.d/`, `keys.d/` and `data/` are never touched by the package.
|
||||
* A running server is restarted only if the new version accepts the configuration
|
||||
(`easydns check-config` as the `easydns` user); otherwise the old version keeps
|
||||
@@ -63,8 +105,9 @@ and keep `/etc/easydns/data` on a volume. Multi-arch:
|
||||
9090 metrics on loopback by default. Do not expose the API, metrics or recursion to the
|
||||
Internet without explicit ACLs and TLS (reverse proxy).
|
||||
|
||||
## Packages and archives
|
||||
## Building packages yourself
|
||||
|
||||
The official packages come from repo.linuxiarz.pl (see above). To build locally:
|
||||
`scripts/build-deb.sh [--arch amd64,arm64] [--debian bookworm] [--revision N] [--test]` builds
|
||||
`dist/easydns_<version>-<rev>_<arch>.deb` entirely inside Docker (`deploy/docker/Dockerfile.deb`,
|
||||
control/maintainer scripts in `deploy/packaging/debian/`); `--test` installs the package in a
|
||||
|
||||
+5
-5
@@ -127,11 +127,11 @@ For each query the server walks this decision list (first match wins):
|
||||
|
||||
Query `www.example.com A` with an empty cache:
|
||||
```
|
||||
client ──► EasyDNS
|
||||
├─► root server (from root hints) "com" ? → referral to com NS + glue
|
||||
├─► com server "example.com" ? → referral to example.com NS
|
||||
└─► example.com server "www.example.com A" → answer (AA)
|
||||
client ◄── answer (RA=1, AA=0), cached for its TTL
|
||||
client --> EasyDNS
|
||||
├-> root server (from root hints) "com" ? → referral to com NS + glue
|
||||
├-> com server "example.com" ? → referral to example.com NS
|
||||
└-> example.com server "www.example.com A" → answer (AA)
|
||||
client <-- answer (RA=1, AA=0), cached for its TTL
|
||||
```
|
||||
* With **QNAME minimisation** the root only learns `com`, the TLD only `example.com`.
|
||||
* Every response is checked: only records inside the zone of the server that sent them are
|
||||
|
||||
+12
-12
@@ -18,7 +18,7 @@ throughput at low core counts is typically higher than this average.
|
||||
|
||||
## Estimated throughput – authoritative, small zone, UDP
|
||||
|
||||
| Cores | BIND 9.20 (estimate) | EasyDNS 0.1 (estimate) | EasyDNS / BIND |
|
||||
| Cores | BIND 9.20 (estimate) | EasyDNS 0.1.0 (estimate) | EasyDNS / BIND |
|
||||
|---|---|---|---|
|
||||
| 1 | 40–70 k QPS | 30–45 k QPS | ~65–75 % |
|
||||
| 2 | 80–130 k | 60–90 k (55 k measured with the load generator sharing the CPUs) | ~70 % |
|
||||
@@ -31,10 +31,10 @@ Why EasyDNS keeps up on small machines but falls behind on large ones:
|
||||
* answers are built per query (no pre-rendered wire answers);
|
||||
* no `recvmmsg`/`sendmmsg` batching (one system call per packet).
|
||||
|
||||
The table above describes 0.1.0. See "Changes after 0.1.0" for what has been removed
|
||||
The table above describes 0.1.0. See "Changes in 0.1.1" for what has been removed
|
||||
from this list and what was measured.
|
||||
|
||||
## Changes after 0.1.0 (Unreleased)
|
||||
## Changes in 0.1.1
|
||||
|
||||
| Change | Effect |
|
||||
|---|---|
|
||||
@@ -51,14 +51,14 @@ Measured on the same 2-vCPU container as before (load generator sharing the CPUs
|
||||
| Build | QPS | p99 | RSS |
|
||||
|---|---|---|---|
|
||||
| 0.1.0 | 55 800 – 56 800 | 1.76 – 1.86 ms | 12.0 MB |
|
||||
| Unreleased, `udp_sockets: 1` | 56 000 – 57 200 | 1.70 – 1.82 ms | 12.7 MB |
|
||||
| Unreleased, `udp_sockets: 0` (2 sockets) | 59 400 – 60 100 | 1.74 – 1.76 ms | 12.3 MB |
|
||||
| 0.1.1, `udp_sockets: 1` | 56 000 – 57 200 | 1.70 – 1.82 ms | 12.7 MB |
|
||||
| 0.1.1, `udp_sockets: 0` (2 sockets) | 59 400 – 60 100 | 1.74 – 1.76 ms | 12.3 MB |
|
||||
|
||||
That is about +6 % on 2 vCPUs. The changes target many-core machines, which this
|
||||
container cannot show; the multi-core gain is **expected, not measured**. Revised
|
||||
estimates for authoritative UDP (to be confirmed with dnsperf on real hardware):
|
||||
|
||||
| Cores | EasyDNS 0.1 (estimate) | Unreleased (estimate) | vs BIND 9.20 |
|
||||
| Cores | EasyDNS 0.1.0 (estimate) | 0.1.1 (estimate) | vs BIND 9.20 |
|
||||
|---|---|---|---|
|
||||
| 1–2 | 30–90 k | 30–95 k | ~70 % |
|
||||
| 4 | 100–150 k | 120–180 k | ~70 % |
|
||||
@@ -75,7 +75,7 @@ client prefixes in total). Coalescing holds one small waiter per waiting query,
|
||||
At typical real-world loads (a few thousand QPS per server) both are far below their
|
||||
limits; latency at low load is similar (sub-millisecond on a LAN).
|
||||
|
||||
## Round 2 (Unreleased): encoded-answer cache, batched UDP, prefetch
|
||||
## Round 2 (0.1.1): encoded-answer cache, batched UDP, prefetch
|
||||
|
||||
| Change | What it does |
|
||||
|---|---|
|
||||
@@ -128,16 +128,16 @@ answer cache off.
|
||||
|
||||
| Workload | Comparison | Reason |
|
||||
|---|---|---|
|
||||
| Recursive, **cache hit** | 0.1: ~50–70 % of BIND on 1–4 cores, falling behind on more cores. Unreleased: sharded cache, expected to scale with cores | 0.1 had a single-lock cache |
|
||||
| Recursive, **cache miss** | latency similar (dominated by network RTT); EasyDNS sends more upstream queries (0.1: ~10–30 %; coalescing now removes duplicates for identical concurrent questions) | no prefetch, no aggressive NSEC use (RFC 8198), simpler server selection; coalescing covers whole client questions, not the resolver's internal NS-address lookups |
|
||||
| Recursive, **cache hit** | 0.1.0: ~50–70 % of BIND on 1–4 cores, falling behind on more cores. 0.1.1: sharded cache, expected to scale with cores | 0.1 had a single-lock cache |
|
||||
| Recursive, **cache miss** | latency similar (dominated by network RTT); EasyDNS sends more upstream queries (0.1.0: ~10–30 %; coalescing now removes duplicates for identical concurrent questions) | no prefetch, no aggressive NSEC use (RFC 8198), simpler server selection; coalescing covers whole client questions, not the resolver's internal NS-address lookups |
|
||||
| DNSSEC validation | similar per-signature cost (ring); EasyDNS caches zone key states 300 s | key cache with fixed TTL |
|
||||
| Zone transfers (AXFR/IXFR) | comparable for small and medium zones | 16 KiB messages, journal-based IXFR on both sides |
|
||||
| Large zones (≥ 1 M records): load time | EasyDNS ~2–4× slower | text parser + per-record allocation |
|
||||
| Large zones: memory | EasyDNS ~2–3× BIND (≈ 300–500 B/record vs ≈ 150–250 B) | `Record` objects with owned names in hash maps (BIND 9.20: qp-trie) |
|
||||
| Idle memory | EasyDNS ~10–20 MB, BIND ~30–80 MB | small runtime, no preallocated pools |
|
||||
| DoT | comparable per connection | rustls; TCP_NODELAY fixed (Unreleased: new connection 44 ms → 0.5 ms on loopback) |
|
||||
| DoH | comparable (Unreleased) | HTTP/2 multiplexing like BIND; 0.1.0 had HTTP/1.1 only |
|
||||
| Encrypted forwarding (DoT/DoH upstreams) | Unreleased: persistent connections – 0.06 ms (DoT) / 0.13 ms (DoH h2) per query on loopback vs ~0.5 ms with a handshake per query | see [secure-dns.md](secure-dns.md) |
|
||||
| DoT | comparable per connection | rustls; TCP_NODELAY fixed (0.1.1: new connection 44 ms → 0.5 ms on loopback) |
|
||||
| DoH | comparable (0.1.1) | HTTP/2 multiplexing like BIND; 0.1.0 had HTTP/1.1 only |
|
||||
| Encrypted forwarding (DoT/DoH upstreams) | 0.1.1: persistent connections – 0.06 ms (DoT) / 0.13 ms (DoH h2) per query on loopback vs ~0.5 ms with a handshake per query | see [secure-dns.md](secure-dns.md) |
|
||||
| Reload of one changed zone | faster in EasyDNS | only changed zones are re-published (atomic pointer swap); BIND `rndc reload` re-reads all zones |
|
||||
|
||||
## Planned improvements (by expected impact)
|
||||
|
||||
+54
-57
@@ -1,65 +1,62 @@
|
||||
# Specification 1.0 compliance – what is missing (0.1.0 + Unreleased changes, updated 2026-11-22)
|
||||
# Feature status and known gaps (0.1.1)
|
||||
|
||||
Legend: ❌ missing, ⚠️ partial, 🧪 implemented but not verified by running it.
|
||||
Everything not listed here is implemented and covered by tests (see `docs/testing.md`).
|
||||
What EasyDNS 0.1.1 does not do yet, does only partly, or has not been verified outside the
|
||||
automated tests. Everything not listed here is implemented and covered by tests
|
||||
(see [testing.md](testing.md)). Planned work is in the README roadmap.
|
||||
|
||||
Status: **missing** – not implemented; **partial** – implemented with the limits described;
|
||||
**untested** – implemented, but not verified by running it in a real environment;
|
||||
**done** – listed here because it was a gap in an earlier version.
|
||||
|
||||
## Features
|
||||
|
||||
| § | Requirement | Status | Details |
|
||||
| Area | Feature | Status | Details |
|
||||
|---|---|---|---|
|
||||
| 3.1 | multiple listeners with socket re-use, socket limits | ✅ | UDP socket group per address with SO_REUSEPORT (`server.udp_sockets`); one TCP listener per address |
|
||||
| 3.2 | DNAME | ❌ | not supported by the zone parser or the resolver |
|
||||
| 3.2 | RFC 3597 | ✅ | in zone files and on the wire |
|
||||
| 4 | DNSSEC on the primary | ⚠️ | online signing with NSEC; **no NSEC3 signing**; manual key rollover (add/remove key file + reload); no automated KSK/ZSK rollover schedule, no CDS/CDNSKEY |
|
||||
| 4 | `$GENERATE` in zone files | ❌ | expand beforehand (`named-compilezone`) |
|
||||
| 5 | secondary forwarding UPDATE to the primary | ❌ | a secondary answers NOTIMP to UPDATE |
|
||||
| 6 | DNSSEC: automated trust anchor updates (RFC 5011) | ❌ | built-in anchors (KSK-2017, KSK-2024) or a file; updates are manual |
|
||||
| 6 | DNSSEC: Ed448 | ❌ | zones signed only with Ed448 validate as *insecure* |
|
||||
| 6 | coalescing of identical in-flight queries | ✅ | client questions are coalesced per route (forwarder pool / recursion); internal resolver lookups are not |
|
||||
| 7 | conditional forwarding per record type | ❌ | per domain/suffix and per client only |
|
||||
| 9 | persistent cache across restarts (optional) | ❌ | |
|
||||
| 9 | separate cache for DNSSEC results | ⚠️ | validated answers use a separate cache key (`dnssec=true`); the validator's zone key cache has a fixed 300 s TTL |
|
||||
| 10 | block list update schedule | ⚠️ | `easydns blocklists update` + systemd timer; no in-process scheduler |
|
||||
| 10 | rules by record type | ❌ | blocking works by name and client, not by type |
|
||||
| 10 | per-client/per-subnet policies | ⚠️ | exemptions (`exempt_clients`) and views for zones; no different block lists per subnet |
|
||||
| 10 | RPZ | ❌ | not explicitly required; conversion is described in `migration-from-bind.md` |
|
||||
| 11.2 | DoH over HTTP/2 | ✅ | server: HTTP/2 + HTTP/1.1 (ALPN), h2c behind a proxy; client: persistent multiplexed HTTP/2 with HTTP/1.1 fallback; DoT client pooled |
|
||||
| 11.3 | DoQ / DoH3 | ❌ (as specified) | architecture prepared, not implemented |
|
||||
| 12 | response rate limiting (RRL) | ⚠️ | per client (/32, /56) + global with "slip"; no RRL per (qname, response) |
|
||||
| 12 | memory control | ⚠️ | limits on cache entries, connections, in-flight queries and sizes; no hard RSS limit |
|
||||
| 12 | API auth: token revocation/rotation | ⚠️ | via configuration change + reload; no endpoint; no JWT/mTLS (optional) |
|
||||
| 12 | hiding domain names in logs | ⚠️ | client IPs are anonymised; names in the query log are not masked (the query log is off by default) |
|
||||
| 13 | modular configuration (include) | ✅ | `include: ["zones.d/*.yaml"]` – zones, keys, ACLs, forward zones in separate files (nesting, globs) |
|
||||
| 13 | hot reload of listeners / TLS / cache size | ⚠️ | need a restart – reported in `restart_required` |
|
||||
| 14 | users with roles | ⚠️ | tokens with admin/read-only roles; no user accounts |
|
||||
| 14 | `/api/...` aliases | – | intentionally only `/api/v1` |
|
||||
| 15 | web panel | ❌ (by decision) | out of scope for the first versions; no `web/` directory |
|
||||
| 16 | Grafana dashboard export | ✅ | `deploy/grafana/easydns.json` (not tested in Grafana 🧪) |
|
||||
| 17 | CLI name | ✅ | `easydns` (short `edns`) instead of `mydns` – changed on request |
|
||||
| 17 | `easydns` over a secure socket | ⚠️ | HTTP API on loopback only; no UNIX socket |
|
||||
| 18 | man pages and completions for the `e*` tools | ⚠️ | man page + completions only for `easydns`; the tools have `--help` |
|
||||
| 18.1 | `ed`: `ixfr=SERIAL` syntax, several queries per invocation, `+multiline` | ❌ | `+multiline` is accepted and ignored |
|
||||
| 18.3 | full nslookup compatibility in `ens` | ⚠️ | the most common arguments and interactive commands |
|
||||
| 18.10 | install via Cargo, `.deb`, `.rpm`, archives | 🧪 | `cargo install --path crates/dns-cli` works; `.deb` – `scripts/build-deb.sh` (Docker) **not run** in this environment; `.rpm` – nfpm configuration only |
|
||||
| 19 | `web/`, `benches/`, `tests/` at the repository root | ⚠️ | tests live in `crates/*/tests`, benchmarking is `easybench` + `docs/testing.md`; `benches/` has only a README |
|
||||
| – | message translations (i18n) | ❌ | messages are English only |
|
||||
| Listeners | several listeners with socket re-use | done | UDP socket group per address with SO_REUSEPORT (`server.udp_sockets`); one TCP listener per address |
|
||||
| Zone data | DNAME | missing | not supported by the zone parser or the resolver |
|
||||
| Zone data | `$GENERATE` in zone files | missing | expand beforehand (`named-compilezone`) |
|
||||
| Zone data | RFC 3597 unknown types | done | in zone files and on the wire |
|
||||
| Primary | DNSSEC signing | partial | online signing with NSEC; no NSEC3 signing; manual key rollover (add/remove key file + reload); no automated KSK/ZSK schedule, no CDS/CDNSKEY |
|
||||
| Secondary | forwarding UPDATE to the primary | missing | a secondary answers NOTIMP to UPDATE |
|
||||
| Resolver | automated trust anchor updates (RFC 5011) | missing | built-in anchors (KSK-2017, KSK-2024) or a file; updates are manual |
|
||||
| Resolver | Ed448 | missing | zones signed only with Ed448 validate as insecure |
|
||||
| Resolver | coalescing of identical in-flight queries | done | client questions are coalesced per route (forwarder pool / recursion); internal resolver lookups are not |
|
||||
| Resolver | separate cache for DNSSEC results | partial | validated answers use a separate cache key; the validator's zone key cache has a fixed 300 s TTL |
|
||||
| Cache | persistent cache across restarts | missing | |
|
||||
| Forwarder | conditional forwarding per record type | missing | per domain/suffix and per client only |
|
||||
| Forwarder | DoT/DoH upstreams | done | persistent pooled DoT, multiplexed HTTP/2 DoH with HTTP/1.1 fallback |
|
||||
| Policy | block list update schedule | partial | `easydns blocklists update` + systemd timer; no in-process scheduler |
|
||||
| Policy | rules by record type | missing | blocking works by name and client, not by type |
|
||||
| Policy | per-client/per-subnet policies | partial | exemptions (`exempt_clients`) and views for zones; no different block lists per subnet |
|
||||
| Policy | RPZ | missing | conversion is described in [migration-from-bind.md](migration-from-bind.md) |
|
||||
| Policy | response rate limiting (RRL) | partial | per client (/32, /56) + global with "slip"; no RRL per (qname, response) |
|
||||
| Transports | DoH over HTTP/2 | done | server: HTTP/2 + HTTP/1.1 (ALPN), h2c behind a proxy |
|
||||
| Transports | DoQ / DoH3 | missing | |
|
||||
| Operations | memory control | partial | limits on cache entries, connections, in-flight queries and sizes; no hard RSS limit |
|
||||
| Operations | hot reload of listeners / TLS settings / cache size | partial | need a restart, reported in `restart_required` (certificate files themselves are reloaded automatically) |
|
||||
| Operations | hiding domain names in logs | partial | client IPs are anonymised; names in the query log are not masked (the query log is off by default) |
|
||||
| Configuration | modular configuration (include) | done | `include: ["zones.d/*.yaml", "keys.d/*.conf"]` – zones, keys, ACLs, forward zones in separate files |
|
||||
| API | token revocation/rotation | partial | via configuration change + reload; no endpoint; no JWT/mTLS |
|
||||
| API | users with roles | partial | tokens with admin/read-only roles; no user accounts |
|
||||
| API | path aliases | by design | only `/api/v1` |
|
||||
| API | web panel | by design | out of scope for now |
|
||||
| CLI | access over a UNIX socket | partial | HTTP API on loopback with a local control token; no UNIX socket |
|
||||
| Tools | man pages and completions for the `e*` tools | partial | man page + completions only for `easydns`; the tools have `--help` |
|
||||
| Tools | `ed`: `ixfr=SERIAL`, several queries per invocation, `+multiline` | missing | `+multiline` is accepted and ignored |
|
||||
| Tools | full nslookup compatibility in `ens` | partial | the most common arguments and interactive commands |
|
||||
| Tools | message translations (i18n) | missing | messages are English only |
|
||||
| Packaging | DEB / RPM (RHEL) / RPM (SUSE) | done | amd64 packages on [repo.linuxiarz.pl](https://repo.linuxiarz.pl); no arm64 packages yet |
|
||||
|
||||
## Verification (what has NOT been run)
|
||||
## Verification
|
||||
|
||||
| § | Requirement | Status |
|
||||
| Area | What | Status |
|
||||
|---|---|---|
|
||||
| 20.4 | comparison with real `dig`/`host`/`nslookup` | 🧪 `scripts/e2e.sh` is ready but **has not been run** (no `dig` in the build environment); the `e*` tools are covered by their own integration tests |
|
||||
| Stage B | "external test secondary" (e.g. BIND) | ❌ interoperability with BIND as secondary/primary has not been tested; primary↔secondary was tested between EasyDNS instances (in one test process; the two-process variant is in `e2e.sh`) |
|
||||
| 20.5 | cargo-fuzz | 🧪 targets in `fuzz/`, not run; the stable robustness test (30 000 packets) runs with every `cargo test` |
|
||||
| 20.6 | 10k/50k/100k QPS, long-running test (leaks, tasks, descriptors) | ⚠️ ~54.6k QPS measured for authoritative answers on 2 vCPU; no 100k+ and no soak test; estimates vs BIND in `docs/performance.md` (estimated to stop scaling above ~4–8 cores) |
|
||||
| 20.7 | CI, ARM64, musl | 🧪 workflow ready (`ci/github-actions-ci.yml` – copy it to `.github/workflows/`), not run; ARM64/musl/macOS/Windows builds not executed |
|
||||
| 21 | Docker image, compose, systemd | 🧪 files ready, not built or run |
|
||||
| 11 | DoT/DoH upstreams in the forwarder | ✅ tested end to end (`secure_forwarder_over_dot_and_doh`): plain-DNS client → forwarder → DoT / DoH upstream with a private CA |
|
||||
| 18.9 | `ewhois` (RDAP/WHOIS) | 🧪 needs the Internet, untested |
|
||||
| 6 | DNSSEC validation on the real Internet | 🧪 tested against a local signed root→TLD→zone chain; not checked with the real IANA anchors (no network in the test environment) |
|
||||
| 6 | NSEC3 validation | ⚠️ logic + RFC 5155 test vector unit-tested; no end-to-end test with an NSEC3 zone |
|
||||
|
||||
## Repository
|
||||
|
||||
* No git repository has been initialised on disk (no commits were made – commits only on request).
|
||||
* `.github/` could not be written remotely – the workflow is in `ci/github-actions-ci.yml`.
|
||||
| Tools | comparison with real `dig`/`host`/`nslookup` (`scripts/e2e.sh`) | untested; the `e*` tools are covered by their own integration tests |
|
||||
| Interoperability | BIND as primary/secondary of EasyDNS | partial: zone data of a production BIND setup (10 zones, DDNS with `update-policy` and TSIG) compared record by record after migration; AXFR/IXFR/NOTIFY between BIND and EasyDNS not tested in both directions |
|
||||
| Robustness | cargo-fuzz | untested: targets in `fuzz/` are not run in CI; the stable robustness test (30 000 packets) runs with every `cargo test` |
|
||||
| Performance | 100k+ QPS, long-running test (leaks, tasks, descriptors) | partial: ~60k QPS measured for authoritative answers on 2 vCPU; no soak test; estimates vs BIND in [performance.md](performance.md) |
|
||||
| Builds | CI, ARM64, musl | untested: workflow in `ci/github-actions-ci.yml`; packages are built for x86_64 glibc only |
|
||||
| Containers | Docker image, compose | untested |
|
||||
| Tools | `ewhois` (RDAP/WHOIS) | untested (needs the Internet) |
|
||||
| Resolver | DNSSEC validation on the real Internet | untested: verified against a local signed root -> TLD -> zone chain, not with the real IANA anchors |
|
||||
| Resolver | NSEC3 validation | partial: logic + RFC 5155 test vector unit-tested; no end-to-end test with an NSEC3 zone |
|
||||
+2
-2
@@ -11,7 +11,7 @@ Linux x86_64 container with 2 vCPUs).
|
||||
| `cargo clippy --workspace --all-targets --all-features -- -D warnings` | pass (0 warnings) |
|
||||
| `cargo test --workspace --all-features` | pass – see counts below |
|
||||
| `cargo build --workspace --release` | pass |
|
||||
| `./dev.sh e2e` (real `dig`/`host`/`nslookup`, two processes) | **not run yet** – `dig` was not available in the build environment |
|
||||
| `./dev.sh e2e` (real `dig`/`host`/`nslookup`, two processes) | not run yet |
|
||||
|
||||
## Test inventory
|
||||
|
||||
@@ -42,7 +42,7 @@ Linux x86_64 container with 2 vCPUs).
|
||||
| authoritative A over UDP, unthrottled, 50 workers | 54 595 | 0 % | 0.87 ms | 1.43 ms | 1.89 ms | 13 MB |
|
||||
| fixed 1 000 QPS, 20 workers | 1 000 | 0 % | 0.53 ms | 0.74 ms | 0.90 ms | |
|
||||
|
||||
After the SO_REUSEPORT/sharding changes (Unreleased), same setup: 59 400 – 60 100 QPS,
|
||||
After the SO_REUSEPORT/sharding changes (0.1.1), same setup: 59 400 – 60 100 QPS,
|
||||
p99 1.74 – 1.76 ms, RSS 12.3 MB (two UDP sockets on 2 vCPUs); see docs/performance.md.
|
||||
`tests/performance.rs` checks that a burst of 40 identical cache misses costs one
|
||||
upstream query and that every socket of the UDP group answers.
|
||||
|
||||
Reference in new issue
Block a user