summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_unbound.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-11-20 11:49:06 +0545
committerPhil Davis <phil.davis@inf.org>2014-11-20 11:49:06 +0545
commit3fc92f970bbcc7893070d9adebe4b63c99a3727d (patch)
tree72dea895120c3a7e0b1fbb59a5693a20faae365e /usr/local/www/services_unbound.php
parent687ff78c96938e1bc6175b293e83079abdb704a4 (diff)
downloadpfsense-3fc92f970bbcc7893070d9adebe4b63c99a3727d.zip
pfsense-3fc92f970bbcc7893070d9adebe4b63c99a3727d.tar.gz
Display Resolver host override aliases
On the main unbound resolver GUI page, like they display on the dnsmasq forwarder GIU page. As per forum: https://forum.pfsense.org/index.php?topic=78356.msg462345#msg462345
Diffstat (limited to 'usr/local/www/services_unbound.php')
-rw-r--r--usr/local/www/services_unbound.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php
index ff2c8ff..af7b649 100644
--- a/usr/local/www/services_unbound.php
+++ b/usr/local/www/services_unbound.php
@@ -465,6 +465,27 @@ function show_advanced_dns() {
</tr>
</table>
</tr>
+ <?php if ($hostent['aliases']['item'] && is_array($hostent['aliases']['item'])): ?>
+ <?php foreach ($hostent['aliases']['item'] as $alias): ?>
+ <tr>
+ <td class="listlr" ondblclick="document.location='services_unbound_host_edit.php?id=<?=$i;?>';">
+ <?=strtolower($alias['host']);?>&nbsp;
+ </td>
+ <td class="listr" ondblclick="document.location='services_unbound_host_edit.php?id=<?=$i;?>';">
+ <?=strtolower($alias['domain']);?>&nbsp;
+ </td>
+ <td class="listr" ondblclick="document.location='services_unbound_host_edit.php?id=<?=$i;?>';">
+ Alias for <?=$hostent['host'] ? $hostent['host'] . '.' . $hostent['domain'] : $hostent['domain'];?>&nbsp;
+ </td>
+ <td class="listbg" ondblclick="document.location='services_unbound_host_edit.php?id=<?=$i;?>';">
+ <?=htmlspecialchars($alias['description']);?>&nbsp;
+ </td>
+ <td valign="middle" class="list nowrap">
+ <a href="services_unbound_host_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0" alt="edit" /></a>
+ </td>
+ </tr>
+ <?php endforeach; ?>
+ <?php endif; ?>
<?php $i++; endforeach; ?>
<tr style="display:none"><td></td></tr>
</tbody>
OpenPOWER on IntegriCloud