26: Configuring DHCP server and DNS (Dnsmasq)
_______________________________________________________________________________________________________
_______________________________________________________________________________________________________
© Virtual Access 2018
GW1000 Series User Manual
Issue: 2.3
Page 262 of 463
26.2.2
Dnsmasq: resolv and host files
Figure 129: 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.
/tmp/resolv.co
nf.auto
Range
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 83: Information table for resolv and host files section