Do not generate zone files on bind slaves release_20120104
authorClinton Ebadi <clinton@unknownlamer.org>
Fri, 4 Jan 2013 08:36:01 +0000 (03:36 -0500)
committerClinton Ebadi <clinton@unknownlamer.org>
Fri, 4 Jan 2013 08:36:01 +0000 (03:36 -0500)
* bind slaves perform domain transfers from the master server, so
  there is no need to generate and push zone files to them. In theory.

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 () =
                                           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
                                                   ()
                                               else if Slave.isDelete (#action fs) then
                                                   let