| | |
| | | |
| | | <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> |
| | |
| | | $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); |
| | | |