Changeset 122 for system/generators/dns.php
- Timestamp:
- Dec 11, 2008, 8:25:14 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
system/generators/dns.php
r117 r122 9 9 $MinimumTime = 10800; 10 10 $BaseDir = '/var/named/chroot/var/named/'; 11 $MailServer = 'centrala'; 12 11 13 // === Local network DNS server === 12 14 … … 22 24 "\t\t\t".$MinimumTime."\t; minimum\n". 23 25 "\t\t\t)\n". 26 "\t\tIN\tNS\tns1.zdechov.net.\n". 27 "\t\tIN\tNS\tns2.zdechov.net.\n". 24 28 "\t\t\tTXT\t".'"community network ZdechovNET"'."\n". 25 "\t\t\tNS\tns1.zdechov.net.\n".26 "\t\t\tNS\tns2.zdechov.net.\n".27 29 // "\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"); 29 31 30 32 $DbResult = $Database->select('hosts','*',' block < 2 AND IP <> ""'); … … 121 123 "\t\t\t)\n". 122 124 "\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"; 128 136 129 137 fputs($File, $Header); … … 195 203 "\t\t\tNS\tns2.".$Domain.".\n". 196 204 "\t\t\tNS\tserver.zlin.czf.\n"; 197 "\t\t\tMX\t10 mail.".$Domain.".\n";205 "\t\t\tMX\t10 ".$MailServer.".".$Domain.".\n"; 198 206 199 207 fputs($File, $Header); … … 212 220 "\t\t\tNS\tns2.".$Domain.".\n". 213 221 "\t\t\tNS\tserver.zlin.czf.\n"; 214 "\t\t\tMX\t10 mail.".$Domain.".\n";222 "\t\t\tMX\t10 ".$MailServer.".".$Domain.".\n"; 215 223 fputs($File2, $Header); 216 224
Note:
See TracChangeset
for help on using the changeset viewer.