We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7edeb11 commit c485608Copy full SHA for c485608
bin/v-add-dns-on-web-alias
@@ -56,6 +56,12 @@ else
56
# Check subdomain
57
sub=$(echo "$dom_alias" | cut -f1 -d . -s)
58
dom=$(echo "$dom_alias" | sed -e "s/^$sub.//" )
59
+
60
+ # Ignore short domains like co.uk, com.au and so on
61
+ if [ "${#dom}" -le '6' ]; then
62
+ exit
63
+ fi
64
65
if [ ! -e "$USER_DATA/dns/$dom.conf" ]; then
66
$BIN/v-add-dns-domain \
67
$user $dom $IP '' '' '' '' $restart > /dev/null
0 commit comments