Changeset 245 for trunk/system


Ignore:
Timestamp:
Aug 29, 2009, 9:28:25 AM (15 years ago)
Author:
george
Message:
  • Oprveno: Nastavení konfigurace DNS serverů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/system/generators/dns.php

    r235 r245  
    7070  {
    7171    $Parts = explode('.', $Network);
    72     $Output = '$ORIGINS '.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa'.
     72    $Output = // '$ORIGIN '.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa'."\n".
    7373    '$TTL '.$DNS['TTL']."\n".
    7474    "@\tIN\tSOA\t".$DNS['NameServer'][0].".\troot.".$DNS['Domain'].".  (\n".
     
    7979    "\t\t\t\t".$DNS['Minimum']."\t; minimum\n".
    8080    "\t\t\t\t)\n";
    81     foreach($DNS['NameServer'] as $NameServer)
     81    foreach($DNS['ReverseNameServer'] as $NameServer)
    8282    {
    8383      if(substr($NameServer, -strlen($DNS['Domain'])) == $DNS['Domain'])
     
    111111  'MailServer' => array('centrala.'.$BaseDomain),
    112112  'NameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain),
     113  'ReverseNameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain),
    113114  'Host' => array(),
    114115  'Alias' => array(),
     
    163164  'BaseDir' => '/var/named/external/',
    164165  'MailServer' => array('centrala.'.$BaseDomain),
    165   'NameServer' => array('gw-hajda.inext.cz', 'ns3.eu.editdns.net', 'ns1.twisted4life.com'),
     166  'NameServer' => array('gw-hajda.inext.cz', 'ns1.vcsweb.com', 'ns1.twisted4life.com'),
     167  'ReverseNameServer' => array('gw-hajda.inext.cz', 'inext.inext.cz'),
    166168  'Host' => array(),
    167169  'Alias' => array(),
     
    199201  'BaseDir' => '/var/named/czfree/',
    200202  'MailServer' => array('centrala.'.$BaseDomain),
    201   'NameServer' => array('centrala.'.$BaseDomain, 'server.zlin.czf'),
     203  'NameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain),
     204  'ReverseNameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain),
    202205  'Host' => array(),
    203206  'Alias' => array(),
     
    235238  'BaseDir' => '/var/named/internal/',
    236239  'MailServer' => array('centrala.'.$BaseDomain),
    237   'NameServer' => array('centrala.'.$BaseDomain, 'server.zlin.czf'),
     240  'NameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain),
     241  'ReverseNameServer' => array('centrala.'.$BaseDomain, 'tv.'.$BaseDomain),
    238242  'Host' => array(),
    239243  'Alias' => array(),
Note: See TracChangeset for help on using the changeset viewer.