diff options
author | Chris Buechler <cmb@pfsense.org> | 2014-11-25 21:12:49 -0600 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2014-11-25 21:12:49 -0600 |
commit | f1a6f696b437935c8b77608e18690359435ca46a (patch) | |
tree | ff568dbddbc009e394708c642f43a3f7a41b11dc /usr/local/www/services_unbound.php | |
parent | 95834f84c45f512d0558da1fd364bdc26f47fe08 (diff) | |
download | pfsense-f1a6f696b437935c8b77608e18690359435ca46a.zip pfsense-f1a6f696b437935c8b77608e18690359435ca46a.tar.gz |
If localhost is configured to be included in resolv.conf, force its selection in Unbound. The resolv.conf logic prevents that from being a problem, but people don't seem to realize they have to pick that to use Unbound for the host itself. Force it here rather than just silently skipping its inclusion in resolv.conf.
Diffstat (limited to 'usr/local/www/services_unbound.php')
-rw-r--r-- | usr/local/www/services_unbound.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr/local/www/services_unbound.php b/usr/local/www/services_unbound.php index af7b649..158b3e2 100644 --- a/usr/local/www/services_unbound.php +++ b/usr/local/www/services_unbound.php @@ -115,6 +115,8 @@ if ($_POST) { if (empty($_POST['active_interface'])) { $input_errors[] = "One or more Network Interfaces must be selected for binding."; + } else if (!isset($config['system']['dnslocalhost']) && !in_array("lo0", $_POST['active_interface'])) { + $input_errors[] = "This system is configured to use the DNS Resolver as its DNS server, so Localhost must be selected in Network Interfaces."; } if (empty($_POST['outgoing_interface'])) { |