Compare commits

...

2 commits

Author SHA1 Message Date
f
25cc58890b
fix: always use ipv6 to connect to nameserver
All checks were successful
ci/woodpecker/push/woodpecker/1 Pipeline was successful
ci/woodpecker/push/woodpecker/2 Pipeline was successful
ci/woodpecker/push/woodpecker/3 Pipeline was successful
ci/woodpecker/push/woodpecker/4 Pipeline was successful
docker's internal resolver may return ipv4 addresses
2024-06-22 19:32:40 -03:00
f
29f7d5ec51
fix: knsupdate commands are node-specific 2024-06-22 19:32:27 -03:00

View file

@ -50,9 +50,14 @@ 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 " "`"
# Craft record # Register the TXT record on every nameserver. Log failures but
cat >/tmp/dns <<DNS # continue anyway.
server knot.$node 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`
zone _domainkey.${SUTTY}. zone _domainkey.${SUTTY}.
origin _domainkey.${SUTTY}. origin _domainkey.${SUTTY}.
ttl 60 ttl 60
@ -61,11 +66,6 @@ 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