From 4560c2d196e8f89a15098290a76255bae81d941e Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Tue, 5 Mar 2013 15:02:39 +0545 Subject: DNS Forwarder allow null forwarding address dnsmasq allows a blank forwarding IP address to be specified in --server parameters. In that case, dnsmasq will attempt a local lookup of the name (e.g. in hosts file), but will not forward the request on to the standard name servers. This is a useful way to prevent internal name requests from being sent out to the real internet name servers. --- usr/local/www/services_dnsmasq_domainoverride_edit.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr/local/www/services_dnsmasq_domainoverride_edit.php b/usr/local/www/services_dnsmasq_domainoverride_edit.php index 74869b4..9f26c8a 100755 --- a/usr/local/www/services_dnsmasq_domainoverride_edit.php +++ b/usr/local/www/services_dnsmasq_domainoverride_edit.php @@ -86,8 +86,8 @@ if ($_POST) { elseif ($_POST['domain'] && !is_domain($_POST['domain'])) { $input_errors[] = gettext("A valid domain 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 ($_POST['ip'] && !is_ipaddr($_POST['ip']) && ($_POST['ip'] != '#') && ($_POST['ip'] != '!')) { + $input_errors[] = gettext("A valid IP address must be specified, or # for an exclusion or ! to not forward at all."); } if ($_POST['dnssrcip'] && !in_array($_POST['dnssrcip'], get_configured_ip_addresses())) { $input_errors[] = gettext("An interface IP address must be specified for the DNS query source."); @@ -131,14 +131,14 @@ include("head.inc");

-
+

- 192.168.100.100
+ 192.168.100.100

-- cgit v1.1