summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-08-30 13:32:36 -0400
committerjim-p <jimp@pfsense.org>2011-08-30 13:33:18 -0400
commit3f9f70cbf589e23688a586cf22279ec204e23bf2 (patch)
tree5b55c70d30e8595b100d71bd959865745b95e713 /usr/local/www/system.php
parentd07b96a5f041631f1aad7d1992d465f002fd626b (diff)
downloadpfsense-3f9f70cbf589e23688a586cf22279ec204e23bf2.zip
pfsense-3f9f70cbf589e23688a586cf22279ec204e23bf2.tar.gz
Move the option to exclude localhost as a DNS server under System > General so it is grouped with other system DNS options in a more logical location.
Diffstat (limited to 'usr/local/www/system.php')
-rwxr-xr-xusr/local/www/system.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/usr/local/www/system.php b/usr/local/www/system.php
index 0074548..0f4ef47 100755
--- a/usr/local/www/system.php
+++ b/usr/local/www/system.php
@@ -60,6 +60,8 @@ $pconfig['timeupdateinterval'] = $config['system']['time-update-interval'];
$pconfig['timeservers'] = $config['system']['timeservers'];
$pconfig['theme'] = $config['system']['theme'];
+$pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']);
+
if (!isset($pconfig['timeupdateinterval']))
$pconfig['timeupdateinterval'] = 300;
if (!$pconfig['timezone'])
@@ -181,6 +183,11 @@ if ($_POST) {
unset($config['system']['dnsallowoverride']);
$config['system']['dnsallowoverride'] = $_POST['dnsallowoverride'] ? true : false;
+ if($_POST['dnslocalhost'] == "yes")
+ $config['system']['dnslocalhost'] = true;
+ else
+ unset($config['system']['dnslocalhost']);
+
/* which interface should the dns servers resolve through? */
if($_POST['dns1gwint'])
$config['system']['dns1gwint'] = $pconfig['dns1gwint'];
@@ -338,6 +345,15 @@ include("head.inc");
"for its own purposes (including the DNS forwarder). " .
"However, they will not be assigned to DHCP and PPTP " .
"VPN clients."), $g['product_name']); ?>
+ <br />
+ <br />
+ <input name="dnslocalhost" type="checkbox" id="dnslocalhost" value="yes" <?php if ($pconfig['dnslocalhost']) echo "checked"; ?> />
+ <strong>
+ <?=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. ".
+ "Checking this box omits localhost from the list of DNS servers."); ?>
</span>
</p>
</td>
OpenPOWER on IntegriCloud