Ignore:
Timestamp:
Mar 18, 2018, 12:19:26 PM (7 years ago)
Author:
chronos
Message:
  • Modified: Generate IPv6 records for DNS server.
  • Modified: Add more webcams.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/NetworkConfigLinux/Generators/DNS.php

    r832 r854  
    4242    // Base server
    4343    $Output .= "@\tIN\tA\t".strtolower($DNS['BaseServer'])."\n";
     44    $Output .= "@\tIN\tAAAA\t".strtolower($DNS['BaseServerIPv6'])."\n";
    4445
    4546    // IPv4 host list
     
    7576      $Output = // '$ORIGIN '.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa'."\n".
    7677      '$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".
    7879      "\t\t\t\t".$DNS['Serial']."\t; serial\n".
    7980      "\t\t\t\t".$DNS['Refresh']."\t; refresh\n".
     
    109110      $Output = // '$ORIGIN '.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa'."\n".
    110111      '$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".
    112113      "\t\t\t\t".$DNS['Serial']."\t; serial\n".
    113114      "\t\t\t\t".$DNS['Refresh']."\t; refresh\n".
     
    158159    $MinimumTime = 10800;
    159160    $TTL = 86400;
    160     $BaseDir = '/var/named';
     161    $BaseDir = '/var/cache/bind';
    161162    //$BaseDir = '/home/chronos/Projekty/centrala/trunk/var/named';
    162163    if(!file_exists($BaseDir)) die('Base directory "'.$BaseDir.'" not exists.');
     
    175176        'Description' => 'ZdechovNET community network',
    176177        'BaseDir' => $BaseDir.'/internal/',
    177         'MailServer' => array('centrala.'.$BaseDomain),
     178        'MailServer' => array('mail.'.$BaseDomain),
    178179        'NameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    179180        'BaseServer' => '10.145.64.8',
     181        'BaseServerIPv6' => '2a00:e580:244:1::4',
    180182        'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    181183        'Host' => array(),
     
    241243        'Description' => 'ZdechovNET community network',
    242244        'BaseDir' => $BaseDir.'/external/',
    243         'MailServer' => array('centrala.'.$BaseDomain),
    244         'NameServer' => array('gw-hajda.inext.cz', 'ns0.xname.org', 'ns2.afraid.org'),
     245        'MailServer' => array('mail.'.$BaseDomain),
     246        'NameServer' => array('gw-hajda.inext.cz', 'ns2.afraid.org', 'ns5.he.net'),
    245247        '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),
    247250        'Host' => array(),
    248251        'Alias' => array(),
     
    283286        'Description' => 'ZdechovNET community network',
    284287        'BaseDir' => $BaseDir.'/czfree/',
    285         'MailServer' => array('centrala.'.$BaseDomain),
     288        'MailServer' => array('mail.'.$BaseDomain),
    286289        'NameServer' => array('centrala.'.$BaseDomain, 'mozek'.$BaseDomain),
    287290        'BaseServer' => '10.145.64.8',
     291        'BaseServerIPv6' => '2a00:e580:244:1::4',
    288292        'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    289293        'Host' => array(),
     
    325329        'Description' => 'ZdechovNET community network',
    326330        'BaseDir' => $BaseDir.'/internal/',
    327         'MailServer' => array('centrala.'.$BaseDomain),
     331        'MailServer' => array('mail.'.$BaseDomain),
    328332        'NameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    329333        'BaseServer' => '10.145.64.8',
     334        'BaseServerIPv6' => '2a00:e580:244:1::4',
    330335        'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    331336        'Host' => array(),
Note: See TracChangeset for help on using the changeset viewer.