Changeset 854 for trunk/Modules/NetworkConfigLinux/Generators/DNS.php
- Timestamp:
- Mar 18, 2018, 12:19:26 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/NetworkConfigLinux/Generators/DNS.php
r832 r854 42 42 // Base server 43 43 $Output .= "@\tIN\tA\t".strtolower($DNS['BaseServer'])."\n"; 44 $Output .= "@\tIN\tAAAA\t".strtolower($DNS['BaseServerIPv6'])."\n"; 44 45 45 46 // IPv4 host list … … 75 76 $Output = // '$ORIGIN '.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa'."\n". 76 77 '$TTL '.$DNS['TTL']."\n". 77 "@\tIN\tSOA\t".$DNS[' NameServer'][0].".\troot.".$DNS['Domain'].". (\n".78 "@\tIN\tSOA\t".$DNS['ReverseNameServer'][0].".\troot.".$DNS['Domain'].". (\n". 78 79 "\t\t\t\t".$DNS['Serial']."\t; serial\n". 79 80 "\t\t\t\t".$DNS['Refresh']."\t; refresh\n". … … 109 110 $Output = // '$ORIGIN '.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa'."\n". 110 111 '$TTL '.$DNS['TTL']."\n". 111 "@\tIN\tSOA\t".$DNS[' NameServer'][0].".\troot.".$DNS['Domain'].". (\n".112 "@\tIN\tSOA\t".$DNS['ReverseNameServer'][0].".\troot.".$DNS['Domain'].". (\n". 112 113 "\t\t\t\t".$DNS['Serial']."\t; serial\n". 113 114 "\t\t\t\t".$DNS['Refresh']."\t; refresh\n". … … 158 159 $MinimumTime = 10800; 159 160 $TTL = 86400; 160 $BaseDir = '/var/ named';161 $BaseDir = '/var/cache/bind'; 161 162 //$BaseDir = '/home/chronos/Projekty/centrala/trunk/var/named'; 162 163 if(!file_exists($BaseDir)) die('Base directory "'.$BaseDir.'" not exists.'); … … 175 176 'Description' => 'ZdechovNET community network', 176 177 'BaseDir' => $BaseDir.'/internal/', 177 'MailServer' => array(' centrala.'.$BaseDomain),178 'MailServer' => array('mail.'.$BaseDomain), 178 179 'NameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 179 180 'BaseServer' => '10.145.64.8', 181 'BaseServerIPv6' => '2a00:e580:244:1::4', 180 182 'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 181 183 'Host' => array(), … … 241 243 'Description' => 'ZdechovNET community network', 242 244 'BaseDir' => $BaseDir.'/external/', 243 'MailServer' => array(' centrala.'.$BaseDomain),244 'NameServer' => array('gw-hajda.inext.cz', 'ns 0.xname.org', 'ns2.afraid.org'),245 'MailServer' => array('mail.'.$BaseDomain), 246 'NameServer' => array('gw-hajda.inext.cz', 'ns2.afraid.org', 'ns5.he.net'), 245 247 'BaseServer' => '10.145.64.8', 246 'ReverseNameServer' => array('gw-hajda.inext.cz', 'inext.inext.cz'), 248 'BaseServerIPv6' => '2a00:e580:244:1::4', 249 'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 247 250 'Host' => array(), 248 251 'Alias' => array(), … … 283 286 'Description' => 'ZdechovNET community network', 284 287 'BaseDir' => $BaseDir.'/czfree/', 285 'MailServer' => array(' centrala.'.$BaseDomain),288 'MailServer' => array('mail.'.$BaseDomain), 286 289 'NameServer' => array('centrala.'.$BaseDomain, 'mozek'.$BaseDomain), 287 290 'BaseServer' => '10.145.64.8', 291 'BaseServerIPv6' => '2a00:e580:244:1::4', 288 292 'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 289 293 'Host' => array(), … … 325 329 'Description' => 'ZdechovNET community network', 326 330 'BaseDir' => $BaseDir.'/internal/', 327 'MailServer' => array(' centrala.'.$BaseDomain),331 'MailServer' => array('mail.'.$BaseDomain), 328 332 'NameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 329 333 'BaseServer' => '10.145.64.8', 334 'BaseServerIPv6' => '2a00:e580:244:1::4', 330 335 'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain), 331 336 'Host' => array(),
Note:
See TracChangeset
for help on using the changeset viewer.