diff --git a/bind8/conf_rndc.cgi b/bind8/conf_rndc.cgi index cd48a7f79..78f5784b4 100755 --- a/bind8/conf_rndc.cgi +++ b/bind8/conf_rndc.cgi @@ -22,7 +22,9 @@ if (!&has_command($config{'rndcconf_cmd'})) { # Check if already working my $out; -&execute_command("$config{'rndc_cmd'} status", undef, \$out); +&execute_command($config{'rndc_cmd'}. + ($config{'rndc_conf'} ? " -c $config{'rndc_conf'}" : ""). + " status", undef, \$out); if (!$? && $out !~ /failed/) { print "",$text{'rndc_desc2'},"

\n"; }