Changeset 231 for trunk/system


Ignore:
Timestamp:
Jun 29, 2009, 11:04:48 AM (16 years ago)
Author:
george
Message:
  • Opraveno: Generování lokálních reverzních záznamů pro externí adresy.
  • Upraveno: Aktualizace plnění úkolů.
  • Přidáno: Sekce odkazů Hostované weby na hlavní stránce.
File:
1 edited

Legend:

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

    r215 r231  
    2121fputs($File,'$ORIGIN '.$BaseDomain.'.'."\n".
    2222'$TTL 86400'."\n".
    23 $BaseDomain.".\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.".    (\n".
     23$BaseDomain.".\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.".  (\n".
    2424"\t\t\t".$Serial."\t; serial\n".
    2525"\t\t\t".$RefreshTime."\t; refresh\n".
     
    7373  fputs($File,
    7474  '$TTL 86400'."\n".
    75   "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.".      (\n".
     75  "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.".  (\n".
    7676  "\t\t\t\t".$Serial."\t; serial\n".
    7777  "\t\t\t\t".$RefreshTime."\t; refresh\n".
     
    102102  fputs($File,
    103103  '$TTL 86400'."\n".
    104   "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.".      (\n".
     104  "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.".  (\n".
    105105  "\t\t\t\t".$Serial."\t; serial\n".
    106106  "\t\t\t\t".$RefreshTime."\t; refresh\n".
     
    118118    $Name = strtolower($Name.'-ext');
    119119    $IP = explode('.',$Interface['ExternalIP']);
    120     fputs($File, $IP[3]."\tIN\tPTR\t".strtolower($Name)."-ext.".$BaseDomain.".\n");
     120    fputs($File, $IP[3]."\tIN\tPTR\t".strtolower($Name).$BaseDomain.".\n");
    121121  }
    122122  fclose($File);
     
    129129$Header = '$ORIGIN '.$BaseDomain.'.'."\n".
    130130'$TTL 86400'."\n".
    131 $BaseDomain.".\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.".    (\t\n".
     131$BaseDomain.".\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.".  (\t\n".
    132132"\t\t\t".$Serial."\t; serial\n".
    133133"\t\t\t".$RefreshTime."\t; refresh\n".
     
    180180  fputs($File,
    181181  '$TTL 86400'."\n".
    182   "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.".      (\n".
     182  "@\tIN\tSOA\t".$NameServers[0].".".$BaseDomain.".\troot.".$BaseDomain.".  (\n".
    183183  "\t\t\t\t".$Serial."\t; serial\n".
    184184  "\t\t\t\t".$RefreshTime."\t; refresh\n".
     
    214214$Header = '$ORIGIN zdechov.zlin.czf.'."\n".
    215215'$TTL 86400'."\n".
    216 $Domain.".\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain." (\n".
     216$Domain.".\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain." (\n".
    217217"\t\t\t".$Serial."\t; serial\n".
    218218"\t\t\t".$RefreshTime."\t; refresh\n".
     
    231231$Header = '$ORIGIN zdechov.zlin.czf.'."\n".
    232232'$TTL 86400'."\n".
    233 $Domain.".\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain." (\n".
     233$Domain.".\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain." (\n".
    234234"\t\t\t".$Serial."\t; serial\n".
    235235"\t\t\t".$RefreshTime."\t; refresh\n".
     
    281281  $File2 = fopen($BaseDir.'internal/'.$Parts[2].'.'.$Parts[1].'.'.$Parts[0].'.in-addr.arpa.zone', 'w+');
    282282  $Header = '$TTL 86400'."\n".
    283   "@\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain.".      (\n".
     283  "@\tIN\tSOA\t".$NameServers[0].".".$Domain.".\troot.".$Domain.".  (\n".
    284284  "\t\t\t\t".$Serial."\t; serial\n".
    285285  "\t\t\t\t".$RefreshTime."\t; refresh\n".
     
    294294
    295295  $Header = '$TTL 86400'."\n".
    296   "@\tIN\tSOA\t".$NameServers[0]."-ext.".$Domain.".\troot.".$Domain.".  (\n".
     296  "@\tIN\tSOA\t".$NameServers[0]."-ext.".$Domain.".\troot.".$Domain.".  (\n".
    297297  "\t\t\t\t".$Serial."\t; serial\n".
    298298  "\t\t\t\t".$RefreshTime."\t; refresh\n".
Note: See TracChangeset for help on using the changeset viewer.