Changeset 847


Ignore:
Timestamp:
09/01/22 12:24:43 (2 years ago)
Author:
Kris Deugau
Message:

/trunk

Add bare skeleton of BIND export

Location:
trunk
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r846 r847  
    62766276  my $target = shift;
    62776277
     6278  if (!$target) {
     6279    $errstr = "Can't export nothing";
     6280    return;
     6281  }
     6282
    62786283  if ($target eq 'tiny') {
    62796284    eval {
     
    62856290    }
    62866291  }
     6292
     6293  # BIND and NSD (and possibly others) could be merged, or partially
     6294  # merged, since pretty much everyone uses BIND-style zone files
     6295  elsif ($target eq 'bind') {
     6296    require DNSDB::ExportBIND;
     6297    eval {
     6298      # there are probably better ways to structure this
     6299      DNSDB::ExportBIND::export($self, @_);
     6300    };
     6301    if ($@) {
     6302      $errstr = $@;
     6303      return undef;
     6304    }
     6305  }
     6306
    62876307# elsif ($target eq 'foo') {
    62886308#   __export_foo(@_);
Note: See TracChangeset for help on using the changeset viewer.