Changeset 231 for trunk/system
- Timestamp:
- Jun 29, 2009, 11:04:48 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/dns.php
r215 r231 21 21 fputs($File,'$ORIGIN '.$BaseDomain.'.'."\n". 22 22 '$TTL 86400'."\n". 23 $BaseDomain.".\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.". 23 $BaseDomain.".\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.". (\n". 24 24 "\t\t\t".$Serial."\t; serial\n". 25 25 "\t\t\t".$RefreshTime."\t; refresh\n". … … 73 73 fputs($File, 74 74 '$TTL 86400'."\n". 75 "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.". 75 "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.". (\n". 76 76 "\t\t\t\t".$Serial."\t; serial\n". 77 77 "\t\t\t\t".$RefreshTime."\t; refresh\n". … … 102 102 fputs($File, 103 103 '$TTL 86400'."\n". 104 "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.". 104 "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.". (\n". 105 105 "\t\t\t\t".$Serial."\t; serial\n". 106 106 "\t\t\t\t".$RefreshTime."\t; refresh\n". … … 118 118 $Name = strtolower($Name.'-ext'); 119 119 $IP = explode('.',$Interface['ExternalIP']); 120 fputs($File, $IP[3]."\tIN\tPTR\t".strtolower($Name). "-ext.".$BaseDomain.".\n");120 fputs($File, $IP[3]."\tIN\tPTR\t".strtolower($Name).$BaseDomain.".\n"); 121 121 } 122 122 fclose($File); … … 129 129 $Header = '$ORIGIN '.$BaseDomain.'.'."\n". 130 130 '$TTL 86400'."\n". 131 $BaseDomain.".\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.". 131 $BaseDomain.".\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.". (\t\n". 132 132 "\t\t\t".$Serial."\t; serial\n". 133 133 "\t\t\t".$RefreshTime."\t; refresh\n". … … 180 180 fputs($File, 181 181 '$TTL 86400'."\n". 182 "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.". 182 "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.". (\n". 183 183 "\t\t\t\t".$Serial."\t; serial\n". 184 184 "\t\t\t\t".$RefreshTime."\t; refresh\n". … … 214 214 $Header = '$ORIGIN zdechov.zlin.czf.'."\n". 215 215 '$TTL 86400'."\n". 216 $Domain.".\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain." 216 $Domain.".\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain." (\n". 217 217 "\t\t\t".$Serial."\t; serial\n". 218 218 "\t\t\t".$RefreshTime."\t; refresh\n". … … 231 231 $Header = '$ORIGIN zdechov.zlin.czf.'."\n". 232 232 '$TTL 86400'."\n". 233 $Domain.".\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain." 233 $Domain.".\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain." (\n". 234 234 "\t\t\t".$Serial."\t; serial\n". 235 235 "\t\t\t".$RefreshTime."\t; refresh\n". … … 281 281 $File2 = fopen($BaseDir.'internal/'.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa.zone', 'w+'); 282 282 $Header = '$TTL 86400'."\n". 283 "@\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain.". 283 "@\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain.". (\n". 284 284 "\t\t\t\t".$Serial."\t; serial\n". 285 285 "\t\t\t\t".$RefreshTime."\t; refresh\n". … … 294 294 295 295 $Header = '$TTL 86400'."\n". 296 "@\tIN\tSOA\t".$NameServers[0]."-ext.".$Domain.".\troot.".$Domain.". 296 "@\tIN\tSOA\t".$NameServers[0]."-ext.".$Domain.".\troot.".$Domain.". (\n". 297 297 "\t\t\t\t".$Serial."\t; serial\n". 298 298 "\t\t\t\t".$RefreshTime."\t; refresh\n".
Note:
See TracChangeset
for help on using the changeset viewer.