DNSMasq/dnsmasq.conf

This is an example config file for DNSMasq, it should be saved as /etc/dnsmasq.conf.
 * 1) Configuration file for dnsmasq.
 * 2) Format is one option per line, legal options are the same
 * 3) as the long options legal on the command line. See
 * 4) "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
 * 1) "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.


 * 1) The following two options make you a better netizen, since they
 * 2) tell dnsmasq to filter out queries which the public DNS cannot
 * 3) answer, and which load the servers (especially the root servers)
 * 4) unnecessarily. If you have a dial-on-demand link they also stop
 * 5) these requests from bringing up the link unnecessarily.


 * 1) Never forward plain names (without a dot or domain part)
 * 2) domain-needed
 * 3) Never forward addresses in the non-routed address spaces.
 * 4) bogus-priv


 * 1) Uncomment this to filter useless windows-originated DNS requests
 * 2) which can trigger dial-on-demand links needlessly.
 * 3) Note that (amongst other things) this blocks all SRV requests,
 * 4) so don't use it if you use eg Kerberos, SIP, XMMP or Google-talk.
 * 5) This option only affects forwarding, SRV records originating for
 * 6) dnsmasq (via srv-host= lines) are not suppressed by it.
 * 7) filterwin2k


 * 1) Change this line if you want dns to get its upstream servers from
 * 2) somewhere other that /etc/resolv.conf
 * 3) resolv-file=


 * 1) By  default,  dnsmasq  will  send queries to any of the upstream
 * 2) servers it knows about and tries to favour servers to are  known
 * 3) to  be  up.  Uncommenting this forces dnsmasq to try each query
 * 4) with  each  server  strictly  in  the  order  they   appear   in
 * 5) /etc/resolv.conf
 * 6) strict-order


 * 1) If you don't want dnsmasq to read /etc/resolv.conf or any other
 * 2) file, getting its servers from this file instead (see below), then
 * 3) uncomment this.
 * 4) no-resolv


 * 1) If you don't want dnsmasq to poll /etc/resolv.conf or other resolv
 * 2) files for changes and re-read them then uncomment this.
 * 3) no-poll


 * 1) Add other name servers here, with domain specs if they are for
 * 2) non-public domains.
 * 3) server=/localnet/192.168.0.1


 * 1) Example of routing PTR queries to nameservers: this will send all
 * 2) address->name queries for 192.168.3/24 to nameserver 10.1.2.3
 * 3) server=/3.168.192.in-addr.arpa/10.1.2.3


 * 1) Add local-only domains here, queries in these domains are answered
 * 2) from /etc/hosts or DHCP only.
 * 3) local=/localnet/


 * 1) Add domains which you want to force to an IP address here.
 * 2) The example below send any host in double-click.net to a local
 * 3) web-server.
 * 4) address=/double-click.net/127.0.0.1


 * 1) --address (and --server) work with IPv6 addresses too.
 * 2) address=/www.thekelleys.org.uk/fe80::20d:60ff:fe36:f83


 * 1) You can control how dnsmasq talks to a server: this forces
 * 2) queries to 10.1.2.3 to be routed via eth1
 * 3) server=10.1.2.3@eth1


 * 1) and this sets the source (ie local) address used to talk to
 * 2) 10.1.2.3 to 192.168.1.1 port 55 (there must be a interface with that
 * 3) IP on the machine, obviously).
 * 4) server=10.1.2.3@192.168.1.1#55


 * 1) If you want dnsmasq to change uid and gid to something other
 * 2) than the default, edit the following lines.
 * 3) user=
 * 4) group=


 * 1) If you want dnsmasq to listen for DHCP and DNS requests only on
 * 2) specified interfaces (and the loopback) give the name of the
 * 3) interface (eg eth0) here.
 * 4) Repeat the line for more than one interface.
 * 5) interface=
 * 6) Or you can specify which interface _not_ to listen on
 * 7) except-interface=
 * 8) Or which to listen on by address (remember to include 127.0.0.1 if
 * 9) you use this.)
 * 10) listen-address=
 * 11) If you want dnsmasq to provide only DNS service on an interface,
 * 12) configure it as shown above, and then use the following line to
 * 13) disable DHCP and TFTP on it.
 * 14) no-dhcp-interface=


 * 1) On systems which support it, dnsmasq binds the wildcard address,
 * 2) even when it is listening on only some interfaces. It then discards
 * 3) requests that it shouldn't reply to. This has the advantage of
 * 4) working even when interfaces come and go and change address. If you
 * 5) want dnsmasq to really bind only the interfaces it is listening on,
 * 6) uncomment this option. About the only time you may need this is when
 * 7) running another nameserver on the same machine.
 * 8) bind-interfaces


 * 1) If you don't want dnsmasq to read /etc/hosts, uncomment the
 * 2) following line.
 * 3) no-hosts
 * 4) or if you want it to read another file, as well as /etc/hosts, use
 * 5) this.
 * 6) addn-hosts=/etc/banner_add_hosts


 * 1) Set this (and domain: see below) if you want to have a domain
 * 2) automatically added to simple names in a hosts-file.
 * 3) expand-hosts


 * 1) Set the domain for dnsmasq. this is optional, but if it is set, it
 * 2) does the following things.
 * 3) 1) Allows DHCP hosts to have fully qualified domain names, as long
 * 4)     as the domain part matches this setting.
 * 5) 2) Sets the "domain" DHCP option thereby potentially setting the
 * 6)    domain of all systems configured by DHCP
 * 7) 3) Provides the domain part for "expand-hosts"
 * 8) domain=thekelleys.org.uk


 * 1) Set a different domain for a particular subnet
 * 2) domain=wireless.thekelleys.org.uk,192.168.2.0/24


 * 1) Same idea, but range rather then subnet
 * 2) domain=reserved.thekelleys.org.uk,192.68.3.100,192.168.3.200


 * 1) Uncomment this to enable the integrated DHCP server, you need
 * 2) to supply the range of addresses available for lease and optionally
 * 3) a lease time. If you have more than one network, you will need to
 * 4) repeat this for each network on which you want to supply DHCP
 * 5) service.
 * 6) dhcp-range=192.168.0.50,192.168.0.150,12h


 * 1) This is an example of a DHCP range where the netmask is given. This
 * 2) is needed for networks we reach the dnsmasq DHCP server via a relay
 * 3) agent. If you don't know what a DHCP relay agent is, you probably
 * 4) don't need to worry about this.
 * 5) dhcp-range=192.168.0.50,192.168.0.150,255.255.255.0,12h


 * 1) This is an example of a DHCP range which sets a tag, so that
 * 2) some DHCP options may be set only for this network.
 * 3) dhcp-range=set:red,192.168.0.50,192.168.0.150


 * 1) Use this DHCP range only when the tag "green" is set.
 * 2) dhcp-range=tag:green,192.168.0.50,192.168.0.150,12h


 * 1) Specify a subnet which can't be used for dynamic address allocation,
 * 2) is available for hosts with matching --dhcp-host lines. Note that
 * 3) dhcp-host declarations will be ignored unless there is a dhcp-range
 * 4) of some type for the subnet in question.
 * 5) In this case the netmask is implied (it comes from the network
 * 6) configuration on the machine running dnsmasq) it is possible to give
 * 7) an explicit netmask instead.
 * 8) dhcp-range=192.168.0.0,static


 * 1) Supply parameters for specified hosts using DHCP. There are lots
 * 2) of valid alternatives, so we will give examples of each. Note that
 * 3) IP addresses DO NOT have to be in the range given above, they just
 * 4) need to be on the same network. The order of the parameters in these
 * 5) do not matter, it's permissible to give name, address and MAC in any
 * 6) order.


 * 1) Always allocate the host with Ethernet address 11:22:33:44:55:66
 * 2) The IP address 192.168.0.60
 * 3) dhcp-host=11:22:33:44:55:66,192.168.0.60


 * 1) Always set the name of the host with hardware address
 * 11:22:33:44:55:66 to be "fred"
 * 1) dhcp-host=11:22:33:44:55:66,fred


 * 1) Always give the host with Ethernet address 11:22:33:44:55:66
 * 2) the name fred and IP address 192.168.0.60 and lease time 45 minutes
 * 3) dhcp-host=11:22:33:44:55:66,fred,192.168.0.60,45m


 * 1) Give a host with Ethernet address 11:22:33:44:55:66 or
 * 12:34:56:78:90:12 the IP address 192.168.0.60. Dnsmasq will assume
 * 1) that these two Ethernet interfaces will never be in use at the same
 * 2) time, and give the IP address to the second, even if it is already
 * 3) in use by the first. Useful for laptops with wired and wireless
 * 4) addresses.
 * 5) dhcp-host=11:22:33:44:55:66,12:34:56:78:90:12,192.168.0.60


 * 1) Give the machine which says its name is "bert" IP address
 * 2) 192.168.0.70 and an infinite lease
 * 3) dhcp-host=bert,192.168.0.70,infinite


 * 1) Always give the host with client identifier 01:02:02:04
 * 2) the IP address 192.168.0.60
 * 3) dhcp-host=id:01:02:02:04,192.168.0.60


 * 1) Always give the host with client identifier "marjorie"
 * 2) the IP address 192.168.0.60
 * 3) dhcp-host=id:marjorie,192.168.0.60


 * 1) Enable the address given for "judge" in /etc/hosts
 * 2) to be given to a machine presenting the name "judge" when
 * 3) it asks for a DHCP lease.
 * 4) dhcp-host=judge


 * 1) Never offer DHCP service to a machine whose Ethernet
 * 2) address is 11:22:33:44:55:66
 * 3) dhcp-host=11:22:33:44:55:66,ignore


 * 1) Ignore any client-id presented by the machine with Ethernet
 * 2) address 11:22:33:44:55:66. This is useful to prevent a machine
 * 3) being treated differently when running under different OS's or
 * 4) between PXE boot and OS boot.
 * 5) dhcp-host=11:22:33:44:55:66,id:*


 * 1) Send extra options which are tagged as "red" to
 * 2) the machine with Ethernet address 11:22:33:44:55:66
 * 3) dhcp-host=11:22:33:44:55:66,set:red


 * 1) Send extra options which are tagged as "red" to
 * 2) any machine with Ethernet address starting 11:22:33:
 * 3) dhcp-host=11:22:33:*:*:*,set:red


 * 1) Ignore any clients which are specified in dhcp-host lines
 * 2) or /etc/ethers. Equivalent to ISC "deny unknown-clients".
 * 3) This relies on the special "known" tag which is set when
 * 4) a host is matched.
 * 5) dhcp-ignore=tag:!known


 * 1) Send extra options which are tagged as "red" to any machine whose
 * 2) DHCP vendorclass string includes the substring "Linux"
 * 3) dhcp-vendorclass=set:red,Linux


 * 1) Send extra options which are tagged as "red" to any machine one
 * 2) of whose DHCP userclass strings includes the substring "accounts"
 * 3) dhcp-userclass=set:red,accounts


 * 1) Send extra options which are tagged as "red" to any machine whose
 * 2) MAC address matches the pattern.
 * 3) dhcp-mac=set:red,00:60:8C:*:*:*


 * 1) If this line is uncommented, dnsmasq will read /etc/ethers and act
 * 2) on the ethernet-address/IP pairs found there just as if they had
 * 3) been given as --dhcp-host options. Useful if you keep
 * 4) MAC-address/host mappings there for other purposes.
 * 5) read-ethers


 * 1) Send options to hosts which ask for a DHCP lease.
 * 2) See RFC 2132 for details of available options.
 * 3) Common options can be given to dnsmasq by name:
 * 4) run "dnsmasq --help dhcp" to get a list.
 * 5) Note that all the common settings, such as netmask and
 * 6) broadcast address, DNS server and default route, are given
 * 7) sane defaults by dnsmasq. You very likely will not need
 * 8) any dhcp-options. If you use Windows clients and Samba, there
 * 9) are some options which are recommended, they are detailed at the
 * 10) end of this section.


 * 1) Override the default route supplied by dnsmasq, which assumes the
 * 2) router is the same machine as the one running dnsmasq.
 * 3) dhcp-option=3,1.2.3.4


 * 1) Do the same thing, but using the option name
 * 2) dhcp-option=option:router,1.2.3.4


 * 1) Override the default route supplied by dnsmasq and send no default
 * 2) route at all. Note that this only works for the options sent by
 * 3) default (1, 3, 6, 12, 28) the same line will send a zero-length option
 * 4) for all other option numbers.
 * 5) dhcp-option=3


 * 1) Set the NTP time server addresses to 192.168.0.4 and 10.10.0.5
 * 2) dhcp-option=option:ntp-server,192.168.0.4,10.10.0.5


 * 1) Set the NTP time server address to be the same machine as
 * 2) is running dnsmasq
 * 3) dhcp-option=42,0.0.0.0


 * 1) Set the NIS domain name to "welly"
 * 2) dhcp-option=40,welly


 * 1) Set the default time-to-live to 50
 * 2) dhcp-option=23,50


 * 1) Set the "all subnets are local" flag
 * 2) dhcp-option=27,1


 * 1) Send the etherboot magic flag and then etherboot options (a string).
 * 2) dhcp-option=128,e4:45:74:68:00:00
 * 3) dhcp-option=129,NIC=eepro100


 * 1) Specify an option which will only be sent to the "red" network
 * 2) (see dhcp-range for the declaration of the "red" network)
 * 3) Note that the tag: part must precede the option: part.
 * 4) dhcp-option = tag:red, option:ntp-server, 192.168.1.1


 * 1) The following DHCP options set up dnsmasq in the same way as is specified
 * 2) for the ISC dhcpcd in
 * 3) http://www.samba.org/samba/ftp/docs/textdocs/DHCP-Server-Configuration.txt
 * 4) adapted for a typical dnsmasq installation where the host running
 * 5) dnsmasq is also the host running samba.
 * 6) you may want to uncomment some or all of them if you use
 * 7) Windows clients and Samba.
 * 8) dhcp-option=19,0          # option ip-forwarding off
 * 9) dhcp-option=44,0.0.0.0    # set netbios-over-TCP/IP nameserver(s) aka WINS server(s)
 * 10) dhcp-option=45,0.0.0.0    # netbios datagram distribution server
 * 11) dhcp-option=46,8          # netbios node type


 * 1) Send RFC-3397 DNS domain search DHCP option. WARNING: Your DHCP client
 * 2) probably doesn't support this......
 * 3) dhcp-option=option:domain-search,eng.apple.com,marketing.apple.com


 * 1) Send RFC-3442 classless static routes (note the netmask encoding)
 * 2) dhcp-option=121,192.168.1.0/24,1.2.3.4,10.0.0.0/8,5.6.7.8


 * 1) Send vendor-class specific options encapsulated in DHCP option 43.
 * 2) The meaning of the options is defined by the vendor-class so
 * 3) options are sent only when the client supplied vendor class
 * 4) matches the class given here. (A substring match is OK, so "MSFT"
 * 5) matches "MSFT" and "MSFT 5.0"). This example sets the
 * 6) mtftp address to 0.0.0.0 for PXEClients.
 * 7) dhcp-option=vendor:PXEClient,1,0.0.0.0


 * 1) Send microsoft-specific option to tell windows to release the DHCP lease
 * 2) when it shuts down. Note the "i" flag, to tell dnsmasq to send the
 * 3) value as a four-byte integer - that's what microsoft wants. See
 * 4) http://technet2.microsoft.com/WindowsServer/en/library/a70f1bb7-d2d4-49f0-96d6-4b7414ecfaae1033.mspx?mfr=true
 * 5) dhcp-option=vendor:MSFT,2,1i


 * 1) Send the Encapsulated-vendor-class ID needed by some configurations of
 * 2) Etherboot to allow is to recognise the DHCP server.
 * 3) dhcp-option=vendor:Etherboot,60,"Etherboot"


 * 1) Send options to PXELinux. Note that we need to send the options even
 * 2) though they don't appear in the parameter request list, so we need
 * 3) to use dhcp-option-force here.
 * 4) See http://syslinux.zytor.com/pxe.php#special for details.
 * 5) Magic number - needed before anything else is recognised
 * 6) dhcp-option-force=208,f1:00:74:7e
 * 7) Configuration file name
 * 8) dhcp-option-force=209,configs/common
 * 9) Path prefix
 * 10) dhcp-option-force=210,/tftpboot/pxelinux/files/
 * 11) Reboot time. (Note 'i' to send 32-bit value)
 * 12) dhcp-option-force=211,30i


 * 1) Set the boot filename for netboot/PXE. You will only need
 * 2) this is you want to boot machines over the network and you will need
 * 3) a TFTP server; either dnsmasq's built in TFTP server or an
 * 4) external one. (See below for how to enable the TFTP server.)
 * 5) dhcp-boot=pxelinux.0


 * 1) The same as above, but use custom tftp-server instead machine running dnsmasq
 * 2) dhcp-boot=pxelinux,server.name,192.168.1.100


 * 1) Boot for Etherboot gPXE. The idea is to send two different
 * 2) filenames, the first loads gPXE, and the second tells gPXE what to
 * 3) load. The dhcp-match sets the gpxe tag for requests from gPXE.
 * 4) dhcp-match=set:gpxe,175 # gPXE sends a 175 option.
 * 5) dhcp-boot=tag:!gpxe,undionly.kpxe
 * 6) dhcp-boot=mybootimage


 * 1) Encapsulated options for Etherboot gPXE. All the options are
 * 2) encapsulated within option 175
 * 3) dhcp-option=encap:175, 1, 5b        # priority code
 * 4) dhcp-option=encap:175, 176, 1b      # no-proxydhcp
 * 5) dhcp-option=encap:175, 177, string  # bus-id
 * 6) dhcp-option=encap:175, 189, 1b      # BIOS drive code
 * 7) dhcp-option=encap:175, 190, user    # iSCSI username
 * 8) dhcp-option=encap:175, 191, pass    # iSCSI password


 * 1) Test for the architecture of a netboot client. PXE clients are
 * 2) supposed to send their architecture as option 93. (See RFC 4578)
 * 3) dhcp-match=peecees, option:client-arch, 0 #x86-32
 * 4) dhcp-match=itanics, option:client-arch, 2 #IA64
 * 5) dhcp-match=hammers, option:client-arch, 6 #x86-64
 * 6) dhcp-match=mactels, option:client-arch, 7 #EFI x86-64


 * 1) Do real PXE, rather than just booting a single file, this is an
 * 2) alternative to dhcp-boot.
 * 3) pxe-prompt="What system shall I netboot?"
 * 4) or with timeout before first available action is taken:
 * 5) pxe-prompt="Press F8 for menu.", 60


 * 1) Available boot services. for PXE.
 * 2) pxe-service=x86PC, "Boot from local disk"


 * 1) Loads /pxelinux.0 from dnsmasq TFTP server.
 * 2) pxe-service=x86PC, "Install Linux", pxelinux


 * 1) Loads /pxelinux.0 from TFTP server at 1.2.3.4.
 * 2) Beware this fails on old PXE ROMS.
 * 3) pxe-service=x86PC, "Install Linux", pxelinux, 1.2.3.4


 * 1) Use bootserver on network, found my multicast or broadcast.
 * 2) pxe-service=x86PC, "Install windows from RIS server", 1


 * 1) Use bootserver at a known IP address.
 * 2) pxe-service=x86PC, "Install windows from RIS server", 1, 1.2.3.4


 * 1) If you have multicast-FTP available,
 * 2) information for that can be passed in a similar way using options 1
 * 3) to 5. See page 19 of
 * 4) http://download.intel.com/design/archives/wfm/downloads/pxespec.pdf


 * 1) Enable dnsmasq's built-in TFTP server
 * 2) enable-tftp


 * 1) Set the root directory for files available via FTP.
 * 2) tftp-root=/var/ftpd


 * 1) Make the TFTP server more secure: with this set, only files owned by
 * 2) the user dnsmasq is running as will be send over the net.
 * 3) tftp-secure


 * 1) This option stops dnsmasq from negotiating a larger blocksize for TFTP
 * 2) transfers. It will slow things down, but may rescue some broken TFTP
 * 3) clients.
 * 4) tftp-no-blocksize


 * 1) Set the boot file name only when the "red" tag is set.
 * 2) dhcp-boot=net:red,pxelinux.red-net


 * 1) An example of dhcp-boot with an external TFTP server: the name and IP
 * 2) address of the server are given after the filename.
 * 3) Can fail with old PXE ROMS. Overridden by --pxe-service.
 * 4) dhcp-boot=/var/ftpd/pxelinux.0,boothost,192.168.0.3


 * 1) If there are multiple external tftp servers having a same name
 * 2) (using /etc/hosts) then that name can be specified as the
 * 3) tftp_servername (the third option to dhcp-boot) and in that
 * 4) case dnsmasq resolves this name and returns the resultant IP
 * 5) addresses in round robin fasion. This facility can be used to
 * 6) load balance the tftp load among a set of servers.
 * 7) dhcp-boot=/var/ftpd/pxelinux.0,boothost,tftp_server_name


 * 1) Set the limit on DHCP leases, the default is 150
 * 2) dhcp-lease-max=150


 * 1) The DHCP server needs somewhere on disk to keep its lease database.
 * 2) This defaults to a sane location, but if you want to change it, use
 * 3) the line below.
 * 4) dhcp-leasefile=/var/lib/misc/dnsmasq.leases


 * 1) Set the DHCP server to authoritative mode. In this mode it will barge in
 * 2) and take over the lease for any client which broadcasts on the network,
 * 3) whether it has a record of the lease or not. This avoids long timeouts
 * 4) when a machine wakes up on a new network. DO NOT enable this if there's
 * 5) the slightest chance that you might end up accidentally configuring a DHCP
 * 6) server for your campus/company accidentally. The ISC server uses
 * 7) the same option, and this URL provides more information:
 * 8) http://www.isc.org/files/auth.html
 * 9) dhcp-authoritative


 * 1) Run an executable when a DHCP lease is created or destroyed.
 * 2) The arguments sent to the script are "add" or "del",
 * 3) then the MAC address, the IP address and finally the hostname
 * 4) if there is one.
 * 5) dhcp-script=/bin/echo


 * 1) Set the cachesize here.
 * 2) cache-size=150


 * 1) If you want to disable negative caching, uncomment this.
 * 2) no-negcache


 * 1) Normally responses which come form /etc/hosts and the DHCP lease
 * 2) file have Time-To-Live set as zero, which conventionally means
 * 3) do not cache further. If you are happy to trade lower load on the
 * 4) server for potentially stale date, you can set a time-to-live (in
 * 5) seconds) here.
 * 6) local-ttl=


 * 1) If you want dnsmasq to detect attempts by Verisign to send queries
 * 2) to unregistered .com and .net hosts to its sitefinder service and
 * 3) have dnsmasq instead return the correct NXDOMAIN response, uncomment
 * 4) this line. You can add similar lines to do the same for other
 * 5) registries which have implemented wildcard A records.
 * 6) bogus-nxdomain=64.94.110.11


 * 1) If you want to fix up DNS results from upstream servers, use the
 * 2) alias option. This only works for IPv4.
 * 3) This alias makes a result of 1.2.3.4 appear as 5.6.7.8
 * 4) alias=1.2.3.4,5.6.7.8
 * 5) and this maps 1.2.3.x to 5.6.7.x
 * 6) alias=1.2.3.0,5.6.7.0,255.255.255.0
 * 7) and this maps 192.168.0.10->192.168.0.40 to 10.0.0.10->10.0.0.40
 * 8) alias=192.168.0.10-192.168.0.40,10.0.0.0,255.255.255.0


 * 1) Change these lines if you want dnsmasq to serve MX records.


 * 1) Return an MX record named "maildomain.com" with target
 * 2) servermachine.com and preference 50
 * 3) mx-host=maildomain.com,servermachine.com,50


 * 1) Set the default target for MX records created using the localmx option.
 * 2) mx-target=servermachine.com


 * 1) Return an MX record pointing to the mx-target for all local
 * 2) machines.
 * 3) localmx


 * 1) Return an MX record pointing to itself for all local machines.
 * 2) selfmx


 * 1) Change the following lines if you want dnsmasq to serve SRV
 * 2) records.  These are useful if you want to serve ldap requests for
 * 3) Active Directory and other windows-originated DNS requests.
 * 4) See RFC 2782.
 * 5) You may add multiple srv-host lines.
 * 6) The fields are, , , ,
 * 7) If the domain part if missing from the name (so that is just has the
 * 8) service and protocol sections) then the domain given by the domain=
 * 9) config option is used. (Note that expand-hosts does not need to be
 * 10) set for this to work.)


 * 1) A SRV record sending LDAP for the example.com domain to
 * 2) ldapserver.example.com port 389
 * 3) srv-host=_ldap._tcp.example.com,ldapserver.example.com,389


 * 1) A SRV record sending LDAP for the example.com domain to
 * 2) ldapserver.example.com port 389 (using domain=)
 * 3) domain=example.com
 * 4) srv-host=_ldap._tcp,ldapserver.example.com,389


 * 1) Two SRV records for LDAP, each with different priorities
 * 2) srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1
 * 3) srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2


 * 1) A SRV record indicating that there is no LDAP server for the domain
 * 2) example.com
 * 3) srv-host=_ldap._tcp.example.com


 * 1) The following line shows how to make dnsmasq serve an arbitrary PTR
 * 2) record. This is useful for DNS-SD. (Note that the
 * 3) domain-name expansion done for SRV records _does_not
 * 4) occur for PTR records.)
 * 5) ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services"


 * 1) Change the following lines to enable dnsmasq to serve TXT records.
 * 2) These are used for things like SPF and zeroconf. (Note that the
 * 3) domain-name expansion done for SRV records _does_not
 * 4) occur for TXT records.)


 * 1) Example SPF.
 * 2) txt-record=example.com,"v=spf1 a -all"


 * 1) Example zeroconf
 * 2) txt-record=_http._tcp.example.com,name=value,paper=A4


 * 1) Provide an alias for a "local" DNS name. Note that this _only_ works
 * 2) for targets which are names from DHCP or /etc/hosts. Give host
 * 3) "bert" another name, bertrand
 * 4) cname=bertand,bert


 * 1) For debugging purposes, log each DNS query as it passes through
 * 2) dnsmasq.
 * 3) log-queries


 * 1) Log lots of extra information about DHCP transactions.
 * 2) log-dhcp


 * 1) Include a another lot of configuration options.
 * 2) conf-file=/etc/dnsmasq.more.conf
 * 3) conf-dir=/etc/dnsmasq.d