User manual

10: DHCP server and DNS configuration
_______________________________________________________________________________________________________
/etc/hosts.
Cachelocal boolean no 1
When set to 0, uses each
network interface's dns
address in the local
/etc/resolv.conf. Normally,
only the loopback address is
used, and all queries go
through dnsmasq.
cachesize integer no 150
Sets the size of dnsmasq
query cache.
dhcp_boot string no (none)
Specifies BOOTP options, in
most cases just the file name.
dhcphostsfile file path no (none)
Specifies an external file with
per host DHCP options.
dhcpleasemax integer no 150
Specifies the maximum
number of DHCP leases.
dnsforwardmax integer no 150
Specifies the maximum
number of concurrent
connections.
domain domain name no (none)
Specifies the DNS domain
handed out to DHCP clients.
domainneeded boolean no 0
Tells dnsmasq to never
forward queries for plain
names, without dots or
domain parts, to upstream
nameservers. If the name is
not known from /etc/hosts or
DHCP then a "not found"
answer is returned.
Option leasefile stores the leases in a file, so that they can be picked up again
if dnsmasq is restarted.
Option resolvfile tells dnsmasq to use this file to find upstream name servers;
it is created by the WAN DHCP client or the PPP client.
Name Type Required Default Description
ednspacket_max integer no 1280
Specifies the largest EDNS.0
UDP packet which is supported
by the DNS forwarder.
enable_tftp boolean no 0 Enables the built in TFTP server.
expandhosts boolean no 0
Adds the local domain part to
names found in /etc/hosts
filterwin2k boolean no 0
Does not forward requests that
cannot be answered by public
name servers.
interface
list of interface
names
no
(all
interfaces
)
Specifies a list of interfaces to
listen on. If unspecified,
dnsmasq will listen to all
interfaces except those listed in
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 59 of 255