|
|
@@ -56,6 +56,12 @@ else
|
|
|
# Check subdomain
|
|
|
sub=$(echo "$dom_alias" | cut -f1 -d . -s)
|
|
|
dom=$(echo "$dom_alias" | sed -e "s/^$sub.//" )
|
|
|
+
|
|
|
+ # Ignore short domains like co.uk, com.au and so on
|
|
|
+ if [ "${#dom}" -le '6' ]; then
|
|
|
+ exit
|
|
|
+ fi
|
|
|
+
|
|
|
if [ ! -e "$USER_DATA/dns/$dom.conf" ]; then
|
|
|
$BIN/v-add-dns-domain \
|
|
|
$user $dom $IP '' '' '' '' $restart > /dev/null
|