summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dns_wizard/Bind.pm12
1 files changed, 3 insertions, 9 deletions
diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm
index e4c41dc1..4ad6ce2d 100644
--- a/dns_wizard/Bind.pm
+++ b/dns_wizard/Bind.pm
@@ -55,7 +55,7 @@ my $REP_SAVE = "/tmp/bck";
my $ZONE_DIR = $NAMED_DIR . "/zone";
my $DATE = `date +%d-%m-20%y`;
-my $o = {
+my $o = {
name => 'DNS Configuration Wizard',
var => {
IPOFFORWARDER => '',
@@ -66,17 +66,11 @@ my $o = {
CLIENTNAME => '',
CLIENTIP => $CLIENTIP,
},
- needed_rpm => [ 'bind' ],
defaultimage => "/usr/share/wizards//dns_wizard/images/DNS.png",
init => sub {
- if ($SHORTHOSTNAME =~ /localhost/) {
- return 0, N("You need to readjust your hostname.")
- }
- if (member($DOMAINNAME, qw(localdomain (none)))) {
- 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.")
- }
- 1
+ test_host_domain($SHORTHOSTNAME, $DOMAINNAME);
},
+ needed_rpm => [ 'bind' ],
};
my %level = (