Browse Source
Merge pull request #3542 from DerVerruckteFuchs/_get_root()-fix
fix _get_root() so that it successfully gets the root domain
pull/3552/head
neil
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
dnsapi/dns_1984hosting.sh
|
@ -204,7 +204,7 @@ _get_root() { |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
_authget "https://management.1984hosting.com/domains/soacheck/?zone=$h&nameserver=ns0.1984.is." |
|
|
_authget "https://management.1984hosting.com/domains/soacheck/?zone=$h&nameserver=ns0.1984.is." |
|
|
if _contains "$_response" "serial" && ! _contains "$_response" 'null}'; then |
|
|
|
|
|
|
|
|
if _contains "$_response" "serial" && ! _contains "$_response" "null"; then |
|
|
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p) |
|
|
_sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p) |
|
|
_domain="$h" |
|
|
_domain="$h" |
|
|
return 0 |
|
|
return 0 |
|
|