diff --git a/xCAT-server/lib/xcat/plugins/AAsn.pm b/xCAT-server/lib/xcat/plugins/AAsn.pm index 4744aea14..c3373ac22 100644 --- a/xCAT-server/lib/xcat/plugins/AAsn.pm +++ b/xCAT-server/lib/xcat/plugins/AAsn.pm @@ -701,8 +701,14 @@ sub setup_FTP sub setup_DNS { + my $XCATROOT = "/opt/xcat"; # default + + if ($ENV{'XCATROOT'}) + { + $XCATROOT = $ENV{'XCATROOT'}; + } # setup the named.conf file - system("/opt/xcat/sbin/makenamed.conf"); + system("$XCATROOT/sbin/makenamed.conf"); # turn DNS on