Do not generate zone files on bind slaves
[hcoop/domtool2.git] / src / plugins / bind.sml
index 7dbc1fa..20aeb60 100644 (file)
@@ -229,7 +229,7 @@ val () = Slave.registerFileHandler (fn fs =>
                                           val {dir, file} = OS.Path.splitDirFile (#file fs)
                                                             
                                           fun dnsChanged () =
-                                              if #domain fs = !didDomain then
+                                              if #domain fs = !didDomain orelse Slave.hostname () <> Config.masterNode then
                                                   ()
                                               else if Slave.isDelete (#action fs) then
                                                   let