diff options
| author | Hayden Hamilton <hayden@hhvn.uk> | 2026-05-25 16:47:57 +0100 |
|---|---|---|
| committer | Hayden Hamilton <hayden@hhvn.uk> | 2026-05-25 16:47:57 +0100 |
| commit | 2fcee6b97111059f771f3e7e90ce93cae424f00d (patch) | |
| tree | 717c91ac0ee6938932d6ad2777ff93fb7df6651f /dkim/reconfig-dns | |
| parent | 6a893c278e344a149c1082fe547572fcbe063a6c (diff) | |
dkim/reconfig-*: add "ed" prefix to ed25519 key selector
Diffstat (limited to 'dkim/reconfig-dns')
| -rwxr-xr-x | dkim/reconfig-dns | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dkim/reconfig-dns b/dkim/reconfig-dns index 6fa0f6d..f81862a 100755 --- a/dkim/reconfig-dns +++ b/dkim/reconfig-dns @@ -17,8 +17,6 @@ fn as { } fn record { - printf '%s._domainkey\tIN TXT "%s" %s\n' \ - $selector `$nl{cat $1} $telltale } if (test $#* -gt 5 || test $#* -lt 3) { @@ -38,8 +36,11 @@ as sed -ibkp '/' ^ $telltale ^ '/d' $zonefile { cat $zonefile - record $rsatxt + printf '%s._domainkey\tIN TXT "%s" %s\n' \ + $selector `$nl{cat $rsatxt} $telltale record $edtxt + printf '%s._domainkey\tIN TXT "%s" %s\n' \ + ed$selector `$nl{cat $edtxt} $telltale } | as tee $zonefile >/dev/null if (!nsd-checkzone $domain $zonefile) { |