summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_interfaces.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-31 05:38:36 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-31 05:38:36 +0000
commit6205a304dcd6ebfc6e0e9b32f3256f118b6da41a (patch)
tree6a82f51d8c80a9320a3146c9b2392a6f86c792b2 /usr/local/www/status_interfaces.php
parentab8caecc9199465184d5c07603d7b1e6f6632fa5 (diff)
downloadpfsense-6205a304dcd6ebfc6e0e9b32f3256f118b6da41a.zip
pfsense-6205a304dcd6ebfc6e0e9b32f3256f118b6da41a.tar.gz
Only show nameservers, strip "nameserver "
Diffstat (limited to 'usr/local/www/status_interfaces.php')
-rwxr-xr-xusr/local/www/status_interfaces.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/status_interfaces.php b/usr/local/www/status_interfaces.php
index f5a1e86..3d15bbe 100755
--- a/usr/local/www/status_interfaces.php
+++ b/usr/local/www/status_interfaces.php
@@ -301,7 +301,14 @@ include("head.inc");
</td>
</tr><?php endif; if ($ifdescr == "wan" && file_exists("{$g['varetc_path']}/nameservers.conf")): ?>
<td width="22%" class="vncellt">ISP DNS servers</td>
- <td width="78%" class="listr"><?php echo nl2br(file_get_contents("{$g['varetc_path']}/nameservers.conf")); ?></td>
+ <td width="78%" class="listr">
+ <?php
+ $dns_servers = get_dns_servers();
+ foreach($dns_servers as $dns) {
+ echo "{$dns}<br>";
+ }
+ ?>
+ </td>
<?php endif; endif; if ($ifinfo['media']): ?>
<tr>
<td width="22%" class="vncellt">Media</td>
OpenPOWER on IntegriCloud