Ignore:
Timestamp:
Mar 9, 2016, 8:36:25 AM (9 years ago)
Author:
chronos
Message:
  • Added: Setup also base DNS name.
File:
1 edited

Legend:

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

    r798 r812  
    3939          $MailServer.".\tIN\tSPF\t\"v=spf1 a -all\"\n";
    4040    }
     41
     42    // Base server
     43    $Output .= "@\tIN\tCNAME\t".strtolower($DNS['BaseServer'])."\n";
    4144
    4245    // IPv4 host list
     
    174177        'MailServer' => array('centrala.'.$BaseDomain),
    175178        'NameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
     179        'BaseServer' => 'centrala.'.$BaseDomain,
    176180        'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    177181        'Host' => array(),
     
    239243        'MailServer' => array('centrala.'.$BaseDomain),
    240244        'NameServer' => array('gw-hajda.inext.cz', 'ns0.xname.org', 'ns2.afraid.org'),
     245        'BaseServer' => 'centrala.'.$BaseDomain,
    241246        'ReverseNameServer' => array('gw-hajda.inext.cz', 'inext.inext.cz'),
    242247        'Host' => array(),
     
    280285        'MailServer' => array('centrala.'.$BaseDomain),
    281286        'NameServer' => array('centrala.'.$BaseDomain, 'mozek'.$BaseDomain),
     287        'BaseServer' => 'centrala.'.$BaseDomain,
    282288        'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    283289        'Host' => array(),
     
    321327        'MailServer' => array('centrala.'.$BaseDomain),
    322328        'NameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
     329        'BaseServer' => 'centrala.'.$BaseDomain,
    323330        'ReverseNameServer' => array('centrala.'.$BaseDomain, 'mozek.'.$BaseDomain),
    324331        'Host' => array(),
Note: See TracChangeset for help on using the changeset viewer.