Browse Source
Merge pull request #4855 from studycom-mrobinson/aws-similar-names
Acme2 similar names
pull/4866/head
neil
1 year 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_aws.sh
|
|
@ -157,7 +157,7 @@ _get_root() { |
|
|
|
|
|
|
|
# iterate over names (a.b.c.d -> b.c.d -> c.d -> d) |
|
|
|
while true; do |
|
|
|
h=$(printf "%s" "$domain" | cut -d . -f $i-100) |
|
|
|
h=$(printf "%s" "$domain" | cut -d . -f $i-100 | sed 's/\./\\./g') |
|
|
|
_debug "Checking domain: $h" |
|
|
|
if [ -z "$h" ]; then |
|
|
|
_error "invalid domain" |
|
|
|