diff options
author | Phil Davis <phil.davis@world.inf.org> | 2013-03-05 14:47:09 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@world.inf.org> | 2013-03-05 14:47:09 +0545 |
commit | 6f8679af81411f7994258708905e593ce9b786e9 (patch) | |
tree | c221364dc57510c47dae2c630afdf9bd38089309 /etc | |
parent | e82e8700fda319b013c2f6359f9d3490e47edcd2 (diff) | |
download | pfsense-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.inc | 4 |
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']; } } |