dns bug fix

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
--- .config_parce.php.v01 Tue Apr 7 15:28:01 2009
+++ .config_parce.php Fri Apr 24 23:47:08 2009
@@ -37,10 +37,11 @@
$zone_name = $r[1];
$zone_value = $r[2];
foreach ($replace_acl as $acl=>$acl_new) {
+ $zone_file = preg_replace('/\//','-', $zone_name);
//$zone_value = str_replace($acl, $acl_new, $zone_value);
$zone_value = preg_replace('/([ \t;{])'.$acl.';/', "\$1".$acl_new.';', $zone_value);
}
- $out .= "zone\t\"".$zone_name."\"\t{type slave; file \"rsync_in/$prefix/".$zone_name."\"; ".$zone_value." };\n";
+ $out .= "zone\t\"".$zone_name."\"\t{type slave; file \"rsync_in/$prefix/".$zone_file."\"; ".$zone_value." };\n";
}
}