STANNIX Solutions for the Real World


Manual: dnsmasq

DNSMASQ(8)				   System Manager's Manual				  DNSMASQ(8)

NAME
       dnsmasq - A lightweight DHCP and caching DNS server.

SYNOPSIS
       dnsmasq [OPTION]...

DESCRIPTION
       dnsmasq is a lightweight DNS, TFTP, PXE, router advertisement and DHCP server. It is intended to pro‐
       vide coupled DNS and DHCP service to a LAN.

       Dnsmasq	accepts DNS queries and either answers them from a small, local, cache or forwards them to a
       real, recursive, DNS server. It loads the contents of /etc/hosts so that local hostnames which do not
       appear in the global DNS can be resolved and also answers DNS queries for DHCP configured  hosts.  It
       can  also act as the authoritative DNS server for one or more domains, allowing local names to appear
       in the global DNS. It can be configured to do DNSSEC validation.

       The dnsmasq DHCP server supports static address assignments and multiple networks.  It  automatically
       sends  a	 sensible default set of DHCP options, and can be configured to send any desired set of DHCP
       options, including vendor-encapsulated options. It includes a secure, read-only, TFTP server to allow
       net/PXE boot of DHCP hosts and also supports BOOTP. The PXE support is full featured, and includes  a
       proxy  mode  which  supplies PXE information to clients whilst DHCP address allocation is done by an‐
       other server.

       The dnsmasq DHCPv6 server provides the same set of features as the DHCPv4 server, and in addition, it
       includes router advertisements and a neat feature which allows naming for clients  which	 use  DHCPv4
       and stateless autoconfiguration only for IPv6 configuration. There is support for doing address allo‐
       cation  (both  DHCPv6  and RA) from subnets which are dynamically delegated via DHCPv6 prefix delega‐
       tion.

       Dnsmasq is coded with small embedded systems in mind. It aims for the smallest possible memory  foot‐
       print  compatible with the supported functions,	and allows unneeded functions to be omitted from the
       compiled binary.

OPTIONS
       Note that in general missing parameters are allowed and switch off functions,  for  instance  "--pid-
       file"  disables writing a PID file. On BSD, unless the GNU getopt library is linked, the long form of
       the options does not work on the command line; it is still recognised in the configuration file.

       --test Read and syntax check configuration file(s). Exit with code 0 if all is OK, or a non-zero code
	      otherwise. Do not start up dnsmasq.

       -w, --help
	      Display all command-line options.	 --help dhcp will display  known  DHCPv4  configuration	 op‐
	      tions, and --help dhcp6 will display DHCPv6 options.

       -h, --no-hosts
	      Don't read the hostnames in /etc/hosts.

       -H, --addn-hosts=
	      Additional  hosts file. Read the specified file as well as /etc/hosts. If --no-hosts is given,
	      read only the specified file. This option may be repeated for more than one  additional  hosts
	      file.  If	 a directory is given, then read all the files contained in that directory in alpha‐
	      betical order.

       --hostsdir=
	      Read all the hosts files contained in the directory. New or changed files are  read  automati‐
	      cally and modified and deleted files have removed records automatically deleted.

       -E, --expand-hosts
	      Add  the	domain to simple names (without a period) in /etc/hosts in the same way as for DHCP-
	      derived names. Note that this does not apply to domain  names  in	 cnames,  PTR  records,	 TXT
	      records etc.

       -T, --local-ttl=