summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2014-04-23 10:14:59 -0400
committerjim-p <jimp@pfsense.org>2014-04-23 10:16:15 -0400
commitbd5737dc22b0e52a52e84fc2d9d1193deb43811d (patch)
tree9d7198a4a9f0d55414914aebff7ebeb9bf4600a4 /usr
parent770f4ee5b870ae172b215032a7fc43072fe529ed (diff)
downloadpfsense-bd5737dc22b0e52a52e84fc2d9d1193deb43811d.zip
pfsense-bd5737dc22b0e52a52e84fc2d9d1193deb43811d.tar.gz
Make sure that the DNS Forwarder/Resolver is actually capable of accepting queries on localhost before using it as a DNS server.
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/services_dnsmasq.php2
-rw-r--r--usr/local/www/services_unbound.php2
-rw-r--r--usr/local/www/system.php2
3 files changed, 5 insertions, 1 deletions
diff --git a/usr/local/www/services_dnsmasq.php b/usr/local/www/services_dnsmasq.php
index 75c1a8e..4033911 100644
--- a/usr/local/www/services_dnsmasq.php
+++ b/usr/local/www/services_dnsmasq.php
@@ -116,6 +116,8 @@ if ($_POST) {
// Relaod filter (we might need to sync to CARP hosts)
filter_configure();
+ /* Update resolv.conf in case the interface bindings exclude localhost. */
+ system_resolvconf_generate();
if ($retval == 0)
clear_subsystem_dirty('hosts');
diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php
index a6a61aa..08a2e6e 100644
--- a/usr/local/www/services_unbound.php
+++ b/usr/local/www/services_unbound.php
@@ -110,6 +110,8 @@ if ($_POST) {
$savemsg = get_std_save_message($retval);
if ($retval == 0)
clear_subsystem_dirty('unbound');
+ /* Update resolv.conf in case the interface bindings exclude localhost. */
+ system_resolvconf_generate();
}
}
diff --git a/usr/local/www/system.php b/usr/local/www/system.php
index be5446e..a5e2b17 100644
--- a/usr/local/www/system.php
+++ b/usr/local/www/system.php
@@ -402,7 +402,7 @@ include("head.inc");
<?=gettext("Do not use the DNS Forwarder as a DNS server for the firewall"); ?>
</strong>
<br />
- <?=gettext("By default localhost (127.0.0.1) will be used as the first DNS server where the DNS forwarder is enabled, so system can use the DNS forwarder to perform lookups. ".
+ <?=gettext("By default localhost (127.0.0.1) will be used as the first DNS server where the DNS Forwarder or DNS Resolver is enabled and set to listen on Localhost, so system can use the local DNS service to perform lookups. ".
"Checking this box omits localhost from the list of DNS servers."); ?>
</span>
</td>
OpenPOWER on IntegriCloud