Browse Source
duckdns doesn't permit subdomains or underscores
none
Matthew
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
dnsapi/dns_duckdns.sh
|
@ -91,13 +91,13 @@ dns_duckdns_rm() { |
|
|
|
|
|
|
|
|
#################### Private functions below ################################## |
|
|
#################### Private functions below ################################## |
|
|
|
|
|
|
|
|
#fulldomain=_acme-challenge.domain.duckdns.org |
|
|
|
|
|
|
|
|
#fulldomain=acme-challenge-domain.duckdns.org |
|
|
#returns |
|
|
#returns |
|
|
# _duckdns_domain=domain |
|
|
|
|
|
|
|
|
# _duckdns_domain=acme-challenge-domain |
|
|
_duckdns_get_domain() { |
|
|
_duckdns_get_domain() { |
|
|
|
|
|
|
|
|
# We'll extract the domain/username from full domain |
|
|
# We'll extract the domain/username from full domain |
|
|
_duckdns_domain="$(printf "%s" "$fulldomain" | _lower_case | _egrep_o '[.][^.][^.]*[.]duckdns.org' | cut -d . -f 2)" |
|
|
|
|
|
|
|
|
_duckdns_domain="$(printf "%s" "$fulldomain" | _lower_case | sed 's/^\([a-z0-9-]*\)\.duckdns\.org/\1/')" |
|
|
|
|
|
|
|
|
if [ -z "$_duckdns_domain" ]; then |
|
|
if [ -z "$_duckdns_domain" ]; then |
|
|
_err "Error extracting the domain." |
|
|
_err "Error extracting the domain." |
|
|