|
@ -126,14 +126,14 @@ _get_root() { |
|
|
p=1 |
|
|
p=1 |
|
|
|
|
|
|
|
|
while true; do |
|
|
while true; do |
|
|
h=$(printf "%s" "$domain" | cut -d . -f $i-) |
|
|
|
|
|
|
|
|
h=$(printf "%s" "$domain" | cut -d . -f "$i"-) |
|
|
if [ -z "$h" ]; then |
|
|
if [ -z "$h" ]; then |
|
|
return 1 |
|
|
return 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
if _contains "$(dig ns "$h")" "mijn.host"; then |
|
|
if _contains "$(dig ns "$h")" "mijn.host"; then |
|
|
root_zone="$h" |
|
|
root_zone="$h" |
|
|
subdomain=$(printf "%s" "$domain" | cut -d . -f 1-$p) |
|
|
|
|
|
|
|
|
subdomain=$(printf "%s" "$domain" | cut -d . -f 1-"$p") |
|
|
return 0 |
|
|
return 0 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|