Browse Source
Update dns_kappernet.sh
dns update waiting time is reduced now (new backend at kapper.net)
pull/4714/head
Harald Kapper
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
dnsapi/dns_kappernet.sh
|
|
@ -45,8 +45,8 @@ dns_kappernet_add() { |
|
|
|
if _kappernet_api GET "action=new&subject=$_domain&data=$data"; then |
|
|
|
|
|
|
|
if _contains "$response" "{\"OK\":true"; then |
|
|
|
_info "Waiting 120 seconds for DNS to spread the new record" |
|
|
|
_sleep 120 |
|
|
|
_info "Waiting 1 second for DNS to spread the new record" |
|
|
|
_sleep 1 |
|
|
|
return 0 |
|
|
|
else |
|
|
|
_err "Error creating a TXT DNS Record: $fullhostname TXT $txtvalue" |
|
|
|