Wait for TXT record to propagate (#3979)

* Wait for TXT record to propagate

* Format while loop over multiple lines

* Make command more robust to strange domain names and tokens

* Bumping version

* Update CHANGELOG.md
This commit is contained in:
Sergiy Belozorov
2025-04-17 13:04:36 +02:00
committed by GitHub
parent abfb8fc9e9
commit a97ef71086
3 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## 1.19.0
- Wait for up to 60 seconds for TXT record to propagate when deploying challenges
## 1.18.0
- Update to use s6-overlay to manage service

View File

@ -1,5 +1,5 @@
---
version: 1.18.0
version: 1.19.0
slug: duckdns
name: Duck DNS
description: >-

View File

@ -32,6 +32,11 @@ deploy_challenge() {
# be found in the $TOKEN_FILENAME file.
curl -s "https://www.duckdns.org/update?domains=$ALIAS&token=$SYS_TOKEN&txt=$TOKEN_VALUE"
timeout 60s bash -c -- "
while ! dig -t txt \"_acme-challenge.$ALIAS\" | grep -F \"$TOKEN_VALUE\" > /dev/null; do
sleep 5;
done
"
}
clean_challenge() {