Ignore:
Timestamp:
May 7, 2016, 8:47:03 PM (9 years ago)
Author:
chronos
Message:
  • Fixed: Serial number generation with one digit time numbers.
File:
1 edited

Legend:

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

    r812 r832  
    4141
    4242    // Base server
    43     $Output .= "@\tIN\tCNAME\t".strtolower($DNS['BaseServer'])."\n";
     43    $Output .= "@\tIN\tA\t".strtolower($DNS['BaseServer'])."\n";
    4444
    4545    // IPv4 host list
     
    151151    $Now = getdate();
    152152    $I = floor(($Now['hours'] * 60 * 60 + $Now['minutes'] * 60 + $Now['seconds']) / (24 * 60 * 60) * 100);
    153     $Serial = date('Ymd', time()).$I;
     153    $Serial = date('Ymd', time()).sprintf('%02d', $I);
    154154    $MinimumTime = 7200;
    155155    $RetryTime = 7200;
     
    177177        'MailServer' => array('centrala.'.$BaseDomain),
    178178        'NameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    179         'BaseServer' => 'centrala.'.$BaseDomain,
     179        'BaseServer' => '10.145.64.8',
    180180        'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    181181        'Host' => array(),
     
    243243        'MailServer' => array('centrala.'.$BaseDomain),
    244244        'NameServer' => array('gw-hajda.inext.cz', 'ns0.xname.org', 'ns2.afraid.org'),
    245         'BaseServer' => 'centrala.'.$BaseDomain,
     245        'BaseServer' => '10.145.64.8',
    246246        'ReverseNameServer' => array('gw-hajda.inext.cz', 'inext.inext.cz'),
    247247        'Host' => array(),
     
    285285        'MailServer' => array('centrala.'.$BaseDomain),
    286286        'NameServer' => array('centrala.'.$BaseDomain, 'mozek'.$BaseDomain),
    287         'BaseServer' => 'centrala.'.$BaseDomain,
     287        'BaseServer' => '10.145.64.8',
    288288        'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    289289        'Host' => array(),
     
    327327        'MailServer' => array('centrala.'.$BaseDomain),
    328328        'NameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    329         'BaseServer' => 'centrala.'.$BaseDomain,
     329        'BaseServer' => '10.145.64.8',
    330330        'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    331331        'Host' => array(),
Note: See TracChangeset for help on using the changeset viewer.