|
@@ -420,11 +420,11 @@ function validate_domain_name {
|
420
|
420
|
# count the number of dots in the domain name
|
421
|
421
|
dots=${TEST_DOMAIN_NAME//[^.]}
|
422
|
422
|
no_of_dots=${#dots}
|
423
|
|
- if (( $no_of_dots > 2 )); then
|
424
|
|
- TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has too many subdomains. It should be of the type x.y.z or y.z"
|
|
423
|
+ if (( $no_of_dots > 3 )); then
|
|
424
|
+ TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has too many subdomains. It should be of the type w.x.y.z, x.y.z or y.z"
|
425
|
425
|
fi
|
426
|
426
|
if (( $no_of_dots == 0 )); then
|
427
|
|
- TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has no top level domain. It should be of the type x.y.z or y.z"
|
|
427
|
+ TEST_DOMAIN_NAME="The domain $TEST_DOMAIN_NAME has no top level domain. It should be of the type w.x.y.z, x.y.z or y.z"
|
428
|
428
|
fi
|
429
|
429
|
}
|
430
|
430
|
|