X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=bin%2Fbind.import;h=45db2e210fe248c9680a493d8d733d087b41b178;hp=1cdf5672ce35d068e43b364a0430c4f2025aba1c;hb=74e058c8a010ef6feb539248a550d0bb169c1e94;hpb=c648976f0b7975f2328ebd7ba8c711fad0ca4195 diff --git a/bin/bind.import b/bin/bind.import index 1cdf5672c..45db2e210 100755 --- a/bin/bind.import +++ b/bin/bind.import @@ -8,6 +8,7 @@ # # OPTIONAL: # -d: dry-run, debug: don't insert any records, just dump debugging output +# -e: use existing domains records in Freeside # -s: import slave zones as master. useful if you need to recreate your # primary nameserver from a secondary # -c dir: override patch for downloading zone files (for example, when @@ -36,8 +37,8 @@ use FS::domain_record; #use FS::svc_acct; #use FS::part_svc; -use vars qw($opt_p $opt_n $opt_s $opt_c $opt_d); -getopts("p:n:sc:d"); +use vars qw($opt_p $opt_n $opt_s $opt_c $opt_d $opt_e); +getopts("p:n:sc:de"); my $user = shift or die &usage; adminsuidsetup $user; @@ -75,7 +76,7 @@ print "\nBIND import completed.\n"; ## sub usage { - die "Usage:\n\n bind.import -p partnum -n \"user\@machine:/path/to/named.conf\" [ -s ] [ -c chroot_dir ] [ -f ] user\n"; + die "Usage:\n\n bind.import -p partnum -n \"user\@machine:/path/to/named.conf\" [ -s ] [ -c chroot_dir ] [ -d ] [ -e ] user\n"; } ########