summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2013-03-05 14:47:09 +0545
committerPhil Davis <phil.davis@world.inf.org>2013-03-05 14:47:09 +0545
commit6f8679af81411f7994258708905e593ce9b786e9 (patch)
treec221364dc57510c47dae2c630afdf9bd38089309 /etc
parente82e8700fda319b013c2f6359f9d3490e47edcd2 (diff)
downloadpfsense-6f8679af81411f7994258708905e593ce9b786e9.zip
pfsense-6f8679af81411f7994258708905e593ce9b786e9.tar.gz
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.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 33e2168..8c69cb0 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -1559,7 +1559,9 @@ function services_dnsmasq_configure() {
/* Setup forwarded domains */
if (isset($config['dnsmasq']['domainoverrides']) && is_array($config['dnsmasq']['domainoverrides'])) {
foreach($config['dnsmasq']['domainoverrides'] as $override) {
- $args .= ' --server=/' . $override['domain'] . '/' . $override['ip'];
+ if ($override['ip'] == "!")
+ $override[ip] = "";
+ $args .= ' --server=/' . $override['domain'] . '/' . $override['ip'];
}
}
OpenPOWER on IntegriCloud