Browse Source

root domain as dns alias mode

neilpang 6 years ago
parent
commit
c2d0d4d28c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dnsapi/dns_cf.sh

+ 1 - 1
dnsapi/dns_cf.sh

@@ -147,7 +147,7 @@ dns_cf_rm() {
 # _domain_id=sdjkglgdfewsdfg
 # _domain_id=sdjkglgdfewsdfg
 _get_root() {
 _get_root() {
   domain=$1
   domain=$1
-  i=2
+  i=1
   p=1
   p=1
   while true; do
   while true; do
     h=$(printf "%s" "$domain" | cut -d . -f $i-100)
     h=$(printf "%s" "$domain" | cut -d . -f $i-100)