14: Configuring DHCP server and DNS (Dnsmasq)
_______________________________________________________________________________________________________
_____________________________________________________________________________________________________
© Virtual Access 2017
GW7304 Series User Manual
Issue: 1.9
Page 116 of 336
14.2.2
Dnsmasq: resolv and host files
Figure 66: The resolv and host files section
Web Field/UCI/Package Option
Description
Web: Use /etc/ethers
UCI: dhcp.@dnsmasq[0].readethers
Opt: readethers
Defines whether static lease entries are read from /etc/ethers.
1
Enabled.
0
Disabled.
Web: Leasefile
UCI: dhcp.@dnsmasq[0].leasefile
Opt: leasefile
Defines the file where given DHCP leases will be stored. The
DHCP lease file allows leases to be picked up again if dnsmasq is
restarted.
/tmp/dhcp.leas
es
Store DHCP leases in this file.
Range
Web: Ignore resolve file
UCI: dhcp.@dnsmasq[0].noresolv
Opt: noresolv
Defines whether to use the local DNS file for resolving DNS.
0
Use local DNS file.
1
Ignore local DNS file.
Web: Resolve file
UCI: dhcp.@dnsmasq[0].resolvfile
Opt: resolvfile
Defines the local DNS file. Default is /tmp/resolv.conf.auto
Web: Ignore Hosts files
UCI: dhcp.@dnsmasq[0].nohosts
Opt: nohosts
Defines whether to use local host’s files for resolving DNS.
0
Use local hosts file.
1
Ignore local hosts file.
Web: Additional Hosts files
UCI: dhcp.@dnsmasq[0].addnhosts
Opt: list addnhosts
Defines local host’s files. When using UCI multiple servers should
be entered with a space between them.
Table 31: Information table for resolv and host files section