gpg-publish
Make your email keys discoverable in DNS – without hand-editing the zone.
Anyone who wants to receive encrypted email has to make their public key discoverable. The DNS standard for this (RFC 7929, OPENPGPKEY) requires hashed names and compact key data – tedious and error-prone by hand. gpg-publish generates these records straight from your GnuPG keyring and checks whether DNS still matches the current key.
From the keyring to a published key.
- Lean enough for DNS. Each record contains only the matching identity, its self-signature and valid subkeys. Third-party signatures, photo IDs and expired subkeys are removed; expired keys are skipped.
- One person or the whole domain. Select keys by email address, a pattern such as
*@example.org, a file or standard input, and limit the output to specific domains. Output as zone-file records or asnsupdatecommands for dynamic updates. - Spot outdated entries.
--checkcompares your keyring with the published records and reports OK, different or missing for each address – with an exit status for scripts and monitoring. Keys that expire within 30 days trigger a warning.
For administrators and operators of their own mail domains who want to provide their staff's OpenPGP keys via DNS. Requirements: GnuPG for keyring access and a DNS zone that you maintain yourself or can update via nsupdate.
Open source, Apache-2.0. gpg-publish is a command-line program written in Go; the current release is v0.1.8. Releases include a signed binary for Linux (amd64). You still sign the DNS zone itself (DNSSEC) with your own infrastructure; --check does not verify DNSSEC signatures.
Make your keys discoverable.
We set up the publication of OpenPGP keys for your domains – from the zone to regular checks. Tell us your domains, name servers and number of addresses.
News
All releases: v0.1.0 and v0.1.2 (2026-05-09), v0.1.3 (2026-05-20), v0.1.4 to v0.1.6 (2026-09-26), v0.1.8 (2026-10-29; tag v0.1.7 of the same day has no release of its own). There is no version 1.0 yet.
- — Release v0.1.8
- v0.1.8: Maintenance release: the Debian package now passes the Lintian checks (maintainer field, Fish completion), plus updated dependencies from v0.1.7. The Linux (amd64) binary is attached to the release with an OpenPGP signature.
- — Release v0.1.6
- v0.1.6: Maintenance release with updated dependencies. Together with v0.1.4 and v0.1.5 from the same day: corrected usage message, manual page now shipped compressed only. The Linux (amd64) binary is attached to the release with an OpenPGP signature.
- — Release v0.1.3
- v0.1.3: Built-in manual page (
gpg-publish man) and shell completion for Bash, Zsh and Fish, both also included in the Debian package. Note for scripts: the--forceoption is now called--replace. - — Release v0.1.0
- v0.1.0: First release: generate OPENPGPKEY records from the keyring, a file or standard input, filter by domain, output them as zone-file records or
nsupdatecommands, and compare them with live DNS using--check.