User manual
10: DHCP server and DNS configuration
_______________________________________________________________________________________________________
dhcp.@dnsmasq[0].leasefile=/tmp/dhcp.leases
dhcp.@dnsmasq[0].resolvfile=/tmp/resolv.conf.auto
dhcp.@dnsmasq[0].interface=lan
config 'dnsmasq'
option domainneeded 1
option boguspriv 1
option filterwin2k 0
option localise_queries 1
option rebind_protection 1
option rebind_localhost 0
option local '/lan/'
option domain 'lan'
option expandhosts 1
option nonegcache 0
option authoritative 1
option readethers 1
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
list interface 'lan'
Options local and domain enable dnsmasq to serve entries in /etc/hosts as
well as the DHCP client's names as if they were entered into the lan DNS
domain.
Options domainneeded, boguspriv, localise_queries, and expandhosts
make sure that requests for these local host names (and the reverse lookup)
never get forwarded to the upstream DNS servers.
Option authoritative makes the router the only DHCP server on this network.
This allows clients to get their IP lease a lot faster.
Name Type Required Default Description
addnhosts list of file paths no (none)
Specifies additional host files
to read for serving DNS
responses.
authoritative boolean no 0
Forces dnsmasq into
authoritative mode, this
speeds up DHCP leasing. Used
if this is the only server in the
network.
Boguspriv boolean no 0
Rejects reverse lookups to
private IP ranges where no
corresponding entry exists in
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 58 of 255