diff --git a/xCAT-server/lib/xcat/plugins/bind.pm b/xCAT-server/lib/xcat/plugins/bind.pm index 2347d9763..2029f6ed5 100755 --- a/xCAT-server/lib/xcat/plugins/bind.pm +++ b/xCAT-server/lib/xcat/plugins/bind.pm @@ -36,6 +36,9 @@ my $dotxt = 0; my $dontdodomains = 0; my $Bootfile = "/etc/named.conf"; my $DBDir = "/var/named/"; +unless (-d $DBDIR) { + $DBDir = " /var/lib/named"; +} my $Domain = ""; my $Hostfile = "/etc/hosts"; my $Commentfile = "";