default => 'BIND8' },
'bind9_minttl' => { label => 'The minttl required by bind9 and RFC1035.',
default => '1D' },
-;
+ 'reload' => { label => 'Optional reload command. If not specified, defaults to "ndc" under BIND8 and "rndc" under BIND9.', },
+;
%info = (
'svc' => 'svc_domain',
my $prefix = "$spooldir/$machine";
my $bind_rel = $export->option('bind_release');
- my $ndc_cmd = ($bind_rel eq 'BIND9') ? 'rndc' : 'ndc';
+ my $ndc_cmd = $export->option('reload')
+ || ( ($bind_rel eq 'BIND9') ? 'rndc' : 'ndc' );
my $minttl = $export->option('bind9_minttl');
#prevent old domain files from piling up