Changeset 122 for system


Ignore:
Timestamp:
Dec 11, 2008, 8:25:14 AM (16 years ago)
Author:
george
Message:
  • Upraveno: Změna adresy mail serveru a přehlednější generování s využitím více proměnných.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • system/generators/dns.php

    r117 r122  
    99$MinimumTime = 10800;
    1010$BaseDir = '/var/named/chroot/var/named/';
     11$MailServer = 'centrala';
     12
    1113// === Local network DNS server ===
    1214
     
    2224"\t\t\t".$MinimumTime."\t; minimum\n".
    2325"\t\t\t)\n".
     26"\t\tIN\tNS\tns1.zdechov.net.\n".
     27"\t\tIN\tNS\tns2.zdechov.net.\n".
    2428"\t\t\tTXT\t".'"community network ZdechovNET"'."\n".
    25 "\t\t\tNS\tns1.zdechov.net.\n".
    26 "\t\t\tNS\tns2.zdechov.net.\n".
    2729// "\t\tIN\tA\t192.168.0.1\n".
    28 "\t\t\tMX\t10 mail.zdechov.net.\n");
     30"\t\t\tMX\t10 ".$MailServer.".zdechov.net.\n");
    2931
    3032$DbResult = $Database->select('hosts','*',' block < 2 AND IP <> ""');
     
    121123"\t\t\t)\n".
    122124"\t\t\tTXT\t".'"community network ZdechovNET"'."\n".
    123 "\t\t\tNS\tns1.zdechov.net.\n".
    124 "\t\t\tNS\tplandsfeld.avonet.cz.\n".
    125 "\t\tIN\tA\t81.2.194.142\n".
    126 "\t\t\tNS\tns2.zdechov.net.\n".
    127 "\t\t\tMX\t10 mail.zdechov.net.\n";
     125"\t\tIN\tNS\tns1.zdechov.net.\n".
     126"\t\tIN\tNS\tns2.zdechov.net.\n".
     127"\t\tIN\tNS\tplandsfeld.avonet.cz.\n";
     128// "\t\tIN\tA\t81.2.194.142\n".
     129$Header .= "\t\t\tMX\t10 ".$MailServer.".zdechov.net.\n".
     130"; SPF\n".
     131"zdechov.net.\tIN\tTXT\t\"v=spf1 mx -all\"\n".
     132"zdechov.net.\tIN\tSPF\t\"v=spf1 mx -all\"\n".
     133"centrala\tIN\tTXT\t\"v=spf1 a -all\"\n".
     134"centrala\tIN\tSPF\t\"v=spf1 a -all\"\n".
     135"; Host list\n";
    128136
    129137fputs($File, $Header);
     
    195203"\t\t\tNS\tns2.".$Domain.".\n".
    196204"\t\t\tNS\tserver.zlin.czf.\n";
    197 "\t\t\tMX\t10 mail.".$Domain.".\n";
     205"\t\t\tMX\t10 ".$MailServer.".".$Domain.".\n";
    198206
    199207fputs($File, $Header);
     
    212220"\t\t\tNS\tns2.".$Domain.".\n".
    213221"\t\t\tNS\tserver.zlin.czf.\n";
    214 "\t\t\tMX\t10 mail.".$Domain.".\n";
     222"\t\t\tMX\t10 ".$MailServer.".".$Domain.".\n";
    215223fputs($File2, $Header);
    216224
Note: See TracChangeset for help on using the changeset viewer.