tbrehm
2009-10-30 cb3808223b930a50d54e8f8df10e66dd12e1e6bd

2 files modified
4 ■■■ changed files
server/conf/bind_named.conf.local.master 2 ●●●●● patch | view | raw | blame | history
server/plugins-available/bind_plugin.inc.php 2 ●●● patch | view | raw | blame | history
server/conf/bind_named.conf.local.master
@@ -1,7 +1,9 @@
<tmpl_loop name='zones'>
<tmpl_if name='zone'>
zone "<tmpl_var name='zone'>" {
        type master;
        file "<tmpl_var name='zonefile_path'>";
};
</tmpl_if>
</tmpl_loop>
server/plugins-available/bind_plugin.inc.php
@@ -134,7 +134,7 @@
        $this->write_named_conf($data,$dns_config);
        
        //* Delete the domain file
        $filename = $dns_config['bind_zonefiles_dir'].'/pri.'.$data['old']['origin'];
        $filename = $dns_config['bind_zonefiles_dir'].'/pri.'.substr($data['old']['origin'],0,-1);
        if(is_file($filename)) unset($filename);
        $app->log("Deleting BIND domain file: ".$filename,LOGLEVEL_DEBUG);