diff options
author | Ermal <eri@pfsense.org> | 2010-03-26 18:00:21 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-03-26 18:00:21 +0000 |
commit | 0261381ace9d7e44939127b2ba1f5fff388e6d7c (patch) | |
tree | 1501ec1feac4bba53f49c05dd87e4aaea847b54b /etc/inc/services.inc | |
parent | 5656777b448e1befac6a373fa53000c5a143eb68 (diff) | |
download | pfsense-0261381ace9d7e44939127b2ba1f5fff388e6d7c.zip pfsense-0261381ace9d7e44939127b2ba1f5fff388e6d7c.tar.gz |
Actually pass the parameter to the dnsmasq where to read its hosts file from.
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r-- | etc/inc/services.inc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 51cadd6..827045a 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -614,10 +614,9 @@ function services_dnsmasq_configure() { $args = ""; - //if (isset($config['dnsmasq']['regdhcp'])) { - // $args .= " -l {$g['dhcpd_chroot_path']}/var/db/dhcpd.leases" . - // " -s {$config['system']['domain']}"; - //} + if (isset($config['dnsmasq']['regdhcp'])) { + $args .= " --dhcp-hostsfile={$g['varetc_path']}/hosts "; + } if (isset($config['dnsmasq']['domainoverrides']) && is_array($config['dnsmasq']['domainoverrides'])) { foreach($config['dnsmasq']['domainoverrides'] as $override) { |