aboutsummaryrefslogtreecommitdiffstats
path: root/dns/primary.conf
blob: eb3addfe1bf0be98d1c4999c99ba3874ae076e2d (plain) (blame)
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
63
64
65
66
67
68
69
# Knot DNS, hidden primary on cs, for the BIP-353 records (names/dns-update.js).
# Cloudflare's coinos.io zone delegates user._bitcoin-payment.coinos.io (and
# the staging one) here with NS + DS records; Knot signs the zones (DNSSEC)
# and the registrar changes them with TSIG-signed UPDATEs over the compose
# network. Nothing on the internet reaches this server: ovh2 runs the public
# secondary (dns/secondary.conf), notified and transferred over Tailscale.
# Keys (TSIG names-update and xfr) live in the state dir, never in git.
server:
    listen: 0.0.0.0@53
    rundir: /rundir

include: /keys/keys.conf

remote:
  - id: ovh2
    address: 100.120.75.121@53
    key: xfr

acl:
  - id: names_update
    key: names-update
    action: update
    update-type: TXT
  - id: xfr_ovh2
    key: xfr
    action: transfer
  # PAFF's names service (paff-names, scripts/names.ts in the paff repo): its
  # nodes' home names, A records and their ACME challenge TXTs, nothing else.
  - id: paff_names_update
    key: paff-names
    action: update
    update-type: [A, TXT]

# The KSK never rolls on its own: its DS sits in Cloudflare by hand.
policy:
  - id: ecdsa
    algorithm: ecdsap256sha256
    ksk-lifetime: 0
    zsk-lifetime: 90d
    nsec3: on
    nsec3-iterations: 0
    nsec3-salt-length: 0

template:
  - id: default
    storage: /storage
    file: "%s.zone"
    dnssec-signing: on
    dnssec-policy: ecdsa
    serial-policy: unixtime
    journal-content: all
    zonefile-load: difference-no-serial
    zonefile-sync: 60
    semantic-checks: on
    notify: ovh2
    acl: [names_update, xfr_ovh2]

log:
  - target: stdout
    any: info

zone:
  - domain: user._bitcoin-payment.coinos.io
  - domain: user._bitcoin-payment.staging.coinos.io
  - domain: user._bitcoin-payment.paff.club
  # <name>.home.paff.club for every PAFF node: paff.club's Cloudflare zone (Free,
  # 200 records) filled up with one A record per node (2026-11-20).
  - domain: home.paff.club
    acl: [paff_names_update, xfr_ovh2]