summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--common/Wizcommon.pm2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index aff78871..8d560b58 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+- fix detection of invalid domain names
- create directory if bind has not
Version 3.7.6 - 27 August 2013, by djennings
diff --git a/common/Wizcommon.pm b/common/Wizcommon.pm
index 2fe045d0..fd9c7d54 100644
--- a/common/Wizcommon.pm
+++ b/common/Wizcommon.pm
@@ -75,7 +75,7 @@ sub test_host_domain {
if ($SHORTHOSTNAME =~ /localhost/) {
return 0, N("You need to readjust your hostname. 'localhost' is not a correct hostname for a DNS server. Hostname must be a FQDN: Fully Qualified Domain Name");
}
- if (member($DOMAINNAME, qw(localdomain (none))) && -z $DOMAINNAME) {
+ if (member($DOMAINNAME, qw(localdomain (none))) || $DOMAINNAME eq '') {
return 0, N("You need to readjust your domainname. For a DNS server you need a correct domainname, not equal to localdomain or none. Hostname must be a FQDN: Fully Qualified Domain Name. Launch drakconnect to adjust it.");
}
return 1;