Compare commits

..

No commits in common. "25cc58890b8fea7a49f59c957027b3fbec0d658f" and "7ebfd568bc2abd8e158425361552c304437ca6cc" have entirely different histories.

View file

@ -50,14 +50,9 @@ case $1 in
txt="`cat $tkey | tr -d "\n" | cut -d '"' -f 2,4 | tr -d '"' | tr -d " "`" 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 # Craft record
# continue anyway. cat >/tmp/dns <<DNS
ok "Registering public key records" server knot.$node
for node in `drill -Q ns $SUTTY`; do
# Craft record
cat >/tmp/dns <<DNS
server `drill -Q aaaa knot.$node`
zone _domainkey.${SUTTY}. zone _domainkey.${SUTTY}.
origin _domainkey.${SUTTY}. origin _domainkey.${SUTTY}.
ttl 60 ttl 60
@ -66,6 +61,11 @@ add ${dkey}. TXT "${txt}"
send send
quit quit
DNS 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 if knsupdate /tmp/dns; then
ok "Registered public key record at ${node}" ok "Registered public key record at ${node}"
else else