Revision 9d3e8723
Added by Phil Davis almost 9 years ago
src/usr/local/www/diag_dns.php | ||
---|---|---|
55 | 55 |
$resolved = array(); |
56 | 56 |
$errreporting = error_reporting(); |
57 | 57 |
error_reporting($errreporting & ~E_WARNING);// dns_get_record throws a warning if nothing is resolved.. |
58 |
foreach($recordtypes as $recordtype) { |
|
58 |
foreach ($recordtypes as $recordtype) {
|
|
59 | 59 |
$tmp = dns_get_record($host, $recordtype); |
60 | 60 |
if (is_array($tmp)) { |
61 | 61 |
$dnsresult = array_merge($dnsresult, $tmp); |
... | ... | |
63 | 63 |
} |
64 | 64 |
error_reporting($errreporting);// restore original php warning/error settings. |
65 | 65 |
|
66 |
foreach($dnsresult as $item) { |
|
66 |
foreach ($dnsresult as $item) {
|
|
67 | 67 |
$newitem = array(); |
68 | 68 |
$newitem['type'] = $item['type']; |
69 | 69 |
switch ($item['type']) { |
Also available in: Unified diff
Code style and comments
No functional change - just making style consistent