summaryrefslogtreecommitdiffstats
path: root/dns_wizard
diff options
context:
space:
mode:
Diffstat (limited to 'dns_wizard')
-rw-r--r--dns_wizard/Bind.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/dns_wizard/Bind.pm b/dns_wizard/Bind.pm
index 75d99b53..addb43e6 100644
--- a/dns_wizard/Bind.pm
+++ b/dns_wizard/Bind.pm
@@ -32,7 +32,7 @@ my $wiz = new MDK::Wizard::Wizcommon;
my $SERIAL = chomp_(`date +20%y%m%d`);
my $HOSTNAME = $wiz->{net}->network_get("HOSTNAME");
-
+my $BIND_CHROOT = "/var/lib/named";
my $IPSERVER = $wiz->{net}->itf_get("IPADDR");
my $sys_wizard_dns = "/etc/sysconfig/drak_dns_wiz";
@@ -47,7 +47,7 @@ if (-f $sys_wizard_dns) {
my $DOMAINNAME = chomp_(`dnsdomainname`);
my $CLIENTIP = get_spe_ip("ipnor", $IPSERVER) . ".";
my $WDIR = "/tmp/dnstest";
-my $NAMED_DIR = "/var/named";
+my $NAMED_DIR = $BIND_CHROOT . "/var/named";
my $DNSKEY = "";
my $SHORTHOSTNAME = chomp_(`hostname -s`);
my $TEXTINFO = "dns Wizard";
@@ -279,7 +279,7 @@ $o->{pages} = {
};
sub test_srv {
- my $dir = "/var/named/zone";
+ my $dir = $BIND_CHROOT . "/var/named/zone";
-d $dir or return 'error_nosrv';
}