Index: trunk/DNSDB/ExportBIND.pm
===================================================================
--- trunk/DNSDB/ExportBIND.pm	(revision 856)
+++ trunk/DNSDB/ExportBIND.pm	(revision 857)
@@ -181,8 +181,11 @@
   # at figuring out which zones are visible/present in which views
   if ($viewlist) {
+    my $tmpconf = "$dnsdb->{bind_zone_conf}.$$"; ##fixme:  split filename for prefixing
+    open BINDCONF, ">", $tmpconf;
+
     foreach my $view (@{$viewlist}) {
 #print Dumper($view);
-#      print BINDCONF "view $view->{location} {\n";
-      print "view $view->{location} {\n";
+      print BINDCONF "view $view->{location} {\n";
+#      print "view $view->{location} {\n";
       # could also use an acl { ... }; statement, then match-clients { aclname; };, but that gets hairy
       # note that some semantics of data visibility need to be handled by the record export, since it's
@@ -190,9 +193,9 @@
       # same as a BIND view with match-clients { any; };
       if ($view->{iplist}) {
-#         print BINDCONF "  match-clients { ".join("; ", $view->iplist)."; };\n";
-         print "  match-clients { ".join("; ", split(/[\s,]+/, $view->{iplist}))."; };\n";
+         print BINDCONF "  match-clients { ".join("; ", $view->iplist)."; };\n";
+#         print "  match-clients { ".join("; ", split(/[\s,]+/, $view->{iplist}))."; };\n";
       } else {
-#         print BINDCONF "  match-clients { any; };\n";
-         print "  match-clients { any; };\n";
+         print BINDCONF "  match-clients { any; };\n";
+#         print "  match-clients { any; };\n";
       }
       foreach my $zone (@{$viewzones{$view->{location}}}) {
@@ -202,4 +205,5 @@
       print "};\n\n";
     } # foreach @$viewlist
+    rename $tmpconf, $dnsdb->{bind_zone_conf};
   } # if $viewlist
 
Index: trunk/dnsdb.conf
===================================================================
--- trunk/dnsdb.conf	(revision 856)
+++ trunk/dnsdb.conf	(revision 857)
@@ -29,7 +29,12 @@
 
 ## BIND export options
+# config fragment populated by exports from dnsadmin
+#bind_zone_conf = /var/named/zones.conf
+# forward zone path
 #bind_export_zone_path = /var/named/zones/%view/db.%zone
 # because they're fish of a different colour
 #bind_export_reverse_zone_path = /var/named/zones/%view/db.%arpazone
+# export all hostnames as full dot-terminated FQDNs?
+#bind_export_fqdn = 1
 
 ## DNS data template options
