User manual

10: DHCP server and DNS configuration
_______________________________________________________________________________________________________
10 DHCP server and DNS configuration
Dynamic Host Configuration Protocol (DHCP) server is responsible for giving out
IP addresses to hosts. IPs can be given out on different interfaces and different
subnets. You can manually configure lease time as well as setting static IP to
host mappings.
Domain Name Server (DNS) is responsible for resolution of IP addresses to
domain names on the internet.
The dnsmasq program provides DHCP and DNS services. In the default
configuration it contains one common section to specify DNS and daemon
related options and one or more DHCP pools to define DHCP serving on network
interfaces.
Possible section types of the DHCP configuration file are defined below. Not all
types may appear in the file and most of them are only needed for special
configurations. Common configurations are Common Options, DHCP Pools and
Static Leases.
10.1 Common options section
The configuration section type dnsmasq determines values and options relevant
to the overall operation of dnsmasq and the DHCP options on all interfaces
served. The following table lists all available options, their default value, as well
as the corresponding dnsmasq command line option.
These are the default settings for the common options:
root@VA_router:~# uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded=1
dhcp.@dnsmasq[0].boguspriv=1
dhcp.@dnsmasq[0].filterwin2k=0
dhcp.@dnsmasq[0].localise_queries=1
dhcp.@dnsmasq[0].rebind_protection=1
dhcp.@dnsmasq[0].rebind_localhost=1
dhcp.@dnsmasq[0].local=/lan/
dhcp.@dnsmasq[0].domain=lan
dhcp.@dnsmasq[0].expandhosts=1
dhcp.@dnsmasq[0].nonegcache=0
dhcp.@dnsmasq[0].authoritative=1
dhcp.@dnsmasq[0].readethers=1
_______________________________________________________________________________________________________
© Virtual Access 2015
GW1000 Series User Manual
Issue: 2.4 Page 57 of 255