diff options
author | Ermal <eri@pfsense.org> | 2011-08-12 11:46:58 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-08-12 11:46:58 +0000 |
commit | 892898536fec744f9ea9ebd154a01a5164266411 (patch) | |
tree | ac3774c78625ce59fa0aa8fea5ddceebf01859c8 /usr | |
parent | 401869ec326193cac13fbe4b6e2c8c879039445a (diff) | |
download | pfsense-892898536fec744f9ea9ebd154a01a5164266411.zip pfsense-892898536fec744f9ea9ebd154a01a5164266411.tar.gz |
Allow disabling having localhost in resolv.conf. There are some special setups that might need this.
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/system_advanced_misc.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_misc.php b/usr/local/www/system_advanced_misc.php index c31bc92..5c82146 100644 --- a/usr/local/www/system_advanced_misc.php +++ b/usr/local/www/system_advanced_misc.php @@ -65,6 +65,7 @@ $pconfig['powerd_enable'] = isset($config['system']['powerd_enable']); $pconfig['glxsb_enable'] = isset($config['system']['glxsb_enable']); $pconfig['schedule_states'] = isset($config['system']['schedule_states']); $pconfig['kill_states'] = isset($config['system']['kill_states']); +$pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']); if ($_POST) { @@ -158,9 +159,15 @@ if ($_POST) { else unset($config['system']['kill_states']); + if($_POST['dnslocalhost'] == "yes") + $config['system']['dnslocalhost'] = true; + else + unset($config['system']['dnslocalhost']); + write_config(); $retval = 0; + system_resolvconf_generate(true); $retval = filter_configure(); if(stristr($retval, "error") <> true) $savemsg = get_std_save_message(gettext($retval)); @@ -391,6 +398,21 @@ function maxmss_checked(obj) { <td colspan="2" class="list" height="12"> </td> </tr> <tr> + <td colspan="2" valign="top" class="listtopic"><?=gettext("DNS Forwarder"); ?></td> + </tr> + <tr> + <td width="22%" valign="top" class="vncell"><?=gettext("Localhost"); ?></td> + <td width="78%" class="vtable"> + <input name="dnslocalhost" type="checkbox" id="dnslocalhost" value="yes" <?php if ($pconfig['dnslocalhost']) echo "checked"; ?> /> + <br /> + <?=gettext("By default localhost(127.0.0.1) will be used as the first dns server. ". + "This option allows to override this setting by not including localhost in the list of dns servers."); ?> + </td> + </tr> + <tr> + <td colspan="2" class="list" height="12"> </td> + </tr> + <tr> <td colspan="2" valign="top" class="listtopic"><?=gettext("Gateway Monitoring"); ?></td> </tr> <tr> |