Changeset 328
- Timestamp:
- Dec 18, 2011, 9:52:16 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/dns.php
r313 r328 192 192 } 193 193 194 /* 194 195 195 // === CZFree network DNS server === 196 $BaseDomain = 'zdechov .zlin.czf';196 $BaseDomain = 'zdechovnet.czf'; 197 197 $CZFreeDNS = array( 198 198 'Domain' => $BaseDomain, … … 210 210 'Host' => array(), 211 211 'Alias' => array(), 212 'Network' => array('10.14 4.200'),212 'Network' => array('10.145.64', '10.145.65', '10.145.66', '10.145.67', '10.145.68', '10.145.69', '10.145.70', '10.145.71'), 213 213 ); 214 214 215 215 // Hosts 216 $DbResult = $Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface. CZFreeIP != ""');217 while($Interface = $DbResult->fetch_assoc()) 218 { 219 $Name = $Interface['DeviceName']; 220 if($Interface['Name'] != '') $Name .= '-'.$Interface['Name']; 221 $CZFreeDNS['Host'][] = array('Name' => $Name, 'Address' => $Interface[' CZFreeIP']);216 $DbResult = $Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.LocalIP != ""'); 217 while($Interface = $DbResult->fetch_assoc()) 218 { 219 $Name = $Interface['DeviceName']; 220 if($Interface['Name'] != '') $Name .= '-'.$Interface['Name']; 221 $CZFreeDNS['Host'][] = array('Name' => $Name, 'Address' => $Interface['LocalIP']); 222 222 } 223 223 … … 247 247 'Host' => array(), 248 248 'Alias' => array(), 249 'Network' => array('10.14 4.200'),249 'Network' => array('10.145.64', '10.145.65', '10.145.66', '10.145.67', '10.145.68', '10.145.69', '10.145.70', '10.145.71'), 250 250 ); 251 251 252 252 // Hosts 253 $DbResult = $Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface. CZFreeIP != ""');254 while($Interface = $DbResult->fetch_assoc()) 255 { 256 $Name = $Interface['DeviceName']; 257 if($Interface['Name'] != '') $Name .= '-'.$Interface['Name']; 258 $CZFreeLocalDNS['Host'][] = array('Name' => $Name.'-czfree', 'Address' => $Interface['CZFreeIP']);253 $DbResult = $Database->query('SELECT NetworkInterface.*, NetworkDevice.Name AS DeviceName FROM NetworkInterface JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device WHERE NetworkInterface.LocalIP != ""'); 254 while($Interface = $DbResult->fetch_assoc()) 255 { 256 $Name = $Interface['DeviceName']; 257 if($Interface['Name'] != '') $Name .= '-'.$Interface['Name']; 258 // $CZFreeLocalDNS['Host'][] = array('Name' => $Name.'-czfree', 'Address' => $Interface['LocalIP']); 259 259 $CZFreeLocalDNS['Host'][] = array('Name' => $Name, 'Address' => $Interface['LocalIP']); 260 260 } … … 270 270 GenerateDNS($CZFreeDNS); 271 271 GenerateDNS($CZFreeLocalDNS); 272 */ 272 273 273 274 274 GenerateDNS($LocalDNS);
Note:
See TracChangeset
for help on using the changeset viewer.