Compare commits
No commits in common. "25cc58890b8fea7a49f59c957027b3fbec0d658f" and "7ebfd568bc2abd8e158425361552c304437ca6cc" have entirely different histories.
25cc58890b
...
7ebfd568bc
1 changed files with 8 additions and 8 deletions
16
opendkimd.sh
16
opendkimd.sh
|
@ -50,14 +50,9 @@ case $1 in
|
|||
|
||||
txt="`cat $tkey | tr -d "\n" | cut -d '"' -f 2,4 | tr -d '"' | tr -d " "`"
|
||||
|
||||
# Register the TXT record on every nameserver. Log failures but
|
||||
# continue anyway.
|
||||
ok "Registering public key records"
|
||||
for node in `drill -Q ns $SUTTY`; do
|
||||
|
||||
# Craft record
|
||||
cat >/tmp/dns <<DNS
|
||||
server `drill -Q aaaa knot.$node`
|
||||
# Craft record
|
||||
cat >/tmp/dns <<DNS
|
||||
server knot.$node
|
||||
zone _domainkey.${SUTTY}.
|
||||
origin _domainkey.${SUTTY}.
|
||||
ttl 60
|
||||
|
@ -66,6 +61,11 @@ add ${dkey}. TXT "${txt}"
|
|||
send
|
||||
quit
|
||||
DNS
|
||||
|
||||
# Register the TXT record on every nameserver. Log failures but
|
||||
# continue anyway.
|
||||
ok "Registering public key records"
|
||||
for node in `drill -Q ns $SUTTY`; do
|
||||
if knsupdate /tmp/dns; then
|
||||
ok "Registered public key record at ${node}"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue