diff options
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) { |