summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2004-12-10 13:49:11 +0000
committerAntoine Ginies <aginies@mandriva.com>2004-12-10 13:49:11 +0000
commitb5eb1fe51f655fb4e1c869ce9e8ddfb4944475dd (patch)
treec8e2769c22374c1b8dcaa20acb42ddd0f55eb033
parentfa32a27e4b93b9c0b754a0be8749cfe98713de29 (diff)
downloaddrakwizard-b5eb1fe51f655fb4e1c869ce9e8ddfb4944475dd.tar
drakwizard-b5eb1fe51f655fb4e1c869ce9e8ddfb4944475dd.tar.gz
drakwizard-b5eb1fe51f655fb4e1c869ce9e8ddfb4944475dd.tar.bz2
drakwizard-b5eb1fe51f655fb4e1c869ce9e8ddfb4944475dd.tar.xz
drakwizard-b5eb1fe51f655fb4e1c869ce9e8ddfb4944475dd.zip
use test_host_domain
-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 = (