summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_dnsmasq_domainoverride_edit.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-12-23 11:21:43 -0500
committerjim-p <jimp@pfsense.org>2010-12-23 11:21:43 -0500
commit057c83f5aa3338493e3cd918c9e154af47b2f685 (patch)
tree773bde048714a8e697ecefa50023696c31005ccd /usr/local/www/services_dnsmasq_domainoverride_edit.php
parent100b72197c0bace7b2bcf5a80e14f7c3755160f0 (diff)
downloadpfsense-057c83f5aa3338493e3cd918c9e154af47b2f685.zip
pfsense-057c83f5aa3338493e3cd918c9e154af47b2f685.tar.gz
Accept # for a DNS override domain DNS server, this makes dnsmasq ignore a previous less specific domain and use system default name servers instead. So you can override example.com to 10.10.10.2 but www.example.com will consult normal DNS.
Diffstat (limited to 'usr/local/www/services_dnsmasq_domainoverride_edit.php')
-rwxr-xr-xusr/local/www/services_dnsmasq_domainoverride_edit.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/services_dnsmasq_domainoverride_edit.php b/usr/local/www/services_dnsmasq_domainoverride_edit.php
index 948ecb0..ae1a0d5 100755
--- a/usr/local/www/services_dnsmasq_domainoverride_edit.php
+++ b/usr/local/www/services_dnsmasq_domainoverride_edit.php
@@ -69,8 +69,8 @@ if ($_POST) {
if (($_POST['domain'] && !is_domain($_POST['domain']))) {
$input_errors[] = gettext("A valid domain must be specified.");
}
- if (($_POST['ip'] && !is_ipaddr($_POST['ip']))) {
- $input_errors[] = gettext("A valid IP address must be specified.");
+ if ($_POST['ip'] && !is_ipaddr($_POST['ip']) && ($_POST['ip'] != '#')) {
+ $input_errors[] = gettext("A valid IP address must be specified, or # for an exclusion.");
}
if (!$input_errors) {
@@ -115,7 +115,7 @@ include("head.inc");
<td width="78%" class="vtable">
<?=$mandfldhtml;?><input name="ip" type="text" class="formfld unknown" id="ip" size="40" value="<?=htmlspecialchars($pconfig['ip']);?>">
<br> <span class="vexpl"><?=gettext("IP address of the authoritative DNS server for this domain"); ?><br>
- <?=gettext("e.g."); ?> <em>192.168.100.100</em></span></td>
+ <?=gettext("e.g."); ?> <em>192.168.100.100</em><br/><?=gettext("Or enter # for an exclusion to pass through this host/subdomain to standard nameservers instead of a previous override."); ?></span></td>
</tr>
<tr>
<td width="22%" valign="top" class="vncell"><?=gettext("Description");?></td>
OpenPOWER on IntegriCloud