Add an inbuxa dns command to show the records the domain needs #56

Merged
jcoffey-dev merged 1 commits from feat/dns-records into main 2026-11-12 14:07:42 +00:00
Owner

Operators hit DNS as the first wall when they stand up a mail server, and after the install the records live in a file whose path you have to remember. This adds one command for them.

  • inbuxa dns prints the dns.zone the install already wrote — no key, no server call. For most domains that never goes stale.
  • inbuxa dns --refresh --key - reads the records live from the running server (loopback, same as certs), so a rotated DKIM key or anything that changed since the install shows up; it also refreshes the saved copy.

The records are the MX/SPF/DKIM/DMARC/SRV/MTA-STS/autoconfig set the server already computes (x:Domain/get dnsZoneFile); nothing new is generated here. A --local or server-not-here install says so and stops. --domain covers pre-2026.10.13 installs that didn't record the domain.

New apply.FetchDNSZone wraps the loopback client + domain lookup; dnsCmd is the CLI. Usage and a flag-parsing test added. stdlib-only; gofmt, vet (amd64+arm64) and go test all pass.

Operators hit DNS as the first wall when they stand up a mail server, and after the install the records live in a file whose path you have to remember. This adds one command for them. - `inbuxa dns` prints the `dns.zone` the install already wrote — no key, no server call. For most domains that never goes stale. - `inbuxa dns --refresh --key -` reads the records live from the running server (loopback, same as `certs`), so a rotated DKIM key or anything that changed since the install shows up; it also refreshes the saved copy. The records are the MX/SPF/DKIM/DMARC/SRV/MTA-STS/autoconfig set the server already computes (`x:Domain/get dnsZoneFile`); nothing new is generated here. A `--local` or server-not-here install says so and stops. `--domain` covers pre-2026.10.13 installs that didn't record the domain. New `apply.FetchDNSZone` wraps the loopback client + domain lookup; `dnsCmd` is the CLI. Usage and a flag-parsing test added. stdlib-only; gofmt, vet (amd64+arm64) and `go test` all pass.
jcoffey-dev added 1 commit 2026-11-12 14:06:39 +00:00
By default it prints the dns.zone the install already wrote, which needs
no key and, for most domains, never goes stale. --refresh --key - reads
the records live from the running server instead, so a rotated DKIM key
or a record that changed since the install shows up, and refreshes the
saved copy.
jcoffey-dev force-pushed feat/dns-records from 72a8681510 to 4210158481 2026-11-12 14:06:39 +00:00 Compare
jcoffey-dev merged commit 4fd5e6f294 into main 2026-11-12 14:07:42 +00:00
jcoffey-dev deleted branch feat/dns-records 2026-11-12 14:07:42 +00:00
Sign in to join this conversation.