1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# BIP-353 DNS (Knot)
`₿[email protected]` resolves through a DNSSEC-signed TXT record at
`name.user._bitcoin-payment.coinos.io`. Cloudflare caps a zone at 3,500 records
(Pro), and one record per name had coinos.io at 3,038 on 2026-11-16, so the
per-name records live on our own Knot DNS instead:
```
Cloudflare (coinos.io zone, DNSSEC)
dns1.coinos.io A 51.79.52.200 (DNS only)
user._bitcoin-payment.coinos.io NS dns1.coinos.io + DS (the zone's KSK)
user._bitcoin-payment.staging.coinos.io NS dns1.coinos.io + DS
Cloudflare (paff.club zone, DNSSEC; DS for paff.club at Namecheap)
user._bitcoin-payment.paff.club NS dns1.coinos.io + DS
home.paff.club NS dns1.coinos.io + DS (PAFF nodes' home names)
│
ovh2 knot-bip353 public secondary, answers the internet (secondary.conf)
│ NOTIFY / AXFR+IXFR over Tailscale, TSIG key `xfr`
cs dns hidden primary, signs the zones (primary.conf, compose `dns`)
│ RFC 2136 UPDATE over the compose network, TSIG key `names-update`
cs names the registrar (names/dns-update.js), domains with `knot` in its config
cs paff-names PAFF's home names (paff repo scripts/names.ts): A + ACME TXT in home.paff.club,
TSIG key `paff-names`, which may change nothing else
```
## cs (primary)
- State: `$STATE/dns/keys.conf` (both TSIG keys, `key:` list) and
`$STATE/dns/storage/` (zone files, journal, DNSSEC keys — back it up; losing
the KSK means a new DS in Cloudflare).
- The compose service publishes port 53 on cs's Tailscale address only.
- `docker exec dns knotc zone-status`, `docker exec dns kdig @127.0.0.1 TXT adam.user._bitcoin-payment.coinos.io`.
- DS for Cloudflare: `docker exec dns keymgr user._bitcoin-payment.coinos.io ds` (the SHA-256 line).
- The KSK never rolls by itself (`ksk-lifetime: 0`); ZSKs roll every 90 days
without anyone's help.
## names config
```json
"coinos.io": { "zoneId": "…", "knot": { "zone": "user._bitcoin-payment.coinos.io", "server": "dns", "port": 53,
"key": { "name": "names-update", "secret": "<base64 from keys.conf>" } } }
```
One-shot moves (`names/dns-migrate.js`, inside the names container):
`backfill` (every name → Knot), `check` (Knot matches the database),
`cf-cleanup` (delete the per-name TXT records from Cloudflare).
## ovh2 (public secondary)
Installed by hand (ovh2 has no deploy hook):
```
/etc/knot-bip353/knot.conf = dns/secondary.conf
/etc/knot-bip353/keys.conf = the `xfr` key only
/var/lib/knot-bip353/ storage
docker run -d --name knot-bip353 --network host --restart unless-stopped \
-v /etc/knot-bip353/knot.conf:/config/knot.conf:ro -v /etc/knot-bip353/keys.conf:/keys/keys.conf:ro \
-v /var/lib/knot-bip353:/storage cznic/knot:3.4 knotd -c /config/knot.conf
ufw allow 53/udp; ufw allow 53/tcp
```
A config change there: copy the file over, `docker restart knot-bip353`.
|