Sin descripción
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

etc_dnsmasq.conf 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626
  1. # Configuration file for dnsmasq.
  2. #
  3. # Format is one option per line, legal options are the same
  4. # as the long options legal on the command line. See
  5. # "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details.
  6. # Listen on this specific port instead of the standard DNS port
  7. # (53). Setting this to zero completely disables DNS function,
  8. # leaving only DHCP and/or TFTP.
  9. #port=5353
  10. # The following two options make you a better netizen, since they
  11. # tell dnsmasq to filter out queries which the public DNS cannot
  12. # answer, and which load the servers (especially the root servers)
  13. # unnecessarily. If you have a dial-on-demand link they also stop
  14. # these requests from bringing up the link unnecessarily.
  15. # Never forward plain names (without a dot or domain part)
  16. domain-needed
  17. # Never forward addresses in the non-routed address spaces.
  18. bogus-priv
  19. # Uncomment this to filter useless windows-originated DNS requests
  20. # which can trigger dial-on-demand links needlessly.
  21. # Note that (amongst other things) this blocks all SRV requests,
  22. # so don't use it if you use eg Kerberos, SIP, XMMP or Google-talk.
  23. # This option only affects forwarding, SRV records originating for
  24. # dnsmasq (via srv-host= lines) are not suppressed by it.
  25. #filterwin2k
  26. # Change this line if you want dns to get its upstream servers from
  27. # somewhere other that /etc/resolv.conf
  28. #resolv-file=
  29. # By default, dnsmasq will send queries to any of the upstream
  30. # servers it knows about and tries to favour servers to are known
  31. # to be up. Uncommenting this forces dnsmasq to try each query
  32. # with each server strictly in the order they appear in
  33. # /etc/resolv.conf
  34. #strict-order
  35. # If you don't want dnsmasq to read /etc/resolv.conf or any other
  36. # file, getting its servers from this file instead (see below), then
  37. # uncomment this.
  38. #no-resolv
  39. # If you don't want dnsmasq to poll /etc/resolv.conf or other resolv
  40. # files for changes and re-read them then uncomment this.
  41. #no-poll
  42. # Add other name servers here, with domain specs if they are for
  43. # non-public domains.
  44. #server=/localnet/192.168.0.1
  45. # Example of routing PTR queries to nameservers: this will send all
  46. # address->name queries for 192.168.3/24 to nameserver 10.1.2.3
  47. #server=/3.168.192.in-addr.arpa/10.1.2.3
  48. # Add local-only domains here, queries in these domains are answered
  49. # from /etc/hosts or DHCP only.
  50. #local=/localnet/
  51. # Add domains which you want to force to an IP address here.
  52. # The example below send any host in double-click.net to a local
  53. # web-server.
  54. #address=/double-click.net/127.0.0.1
  55. # --address (and --server) work with IPv6 addresses too.
  56. #address=/www.thekelleys.org.uk/fe80::20d:60ff:fe36:f83
  57. # You can control how dnsmasq talks to a server: this forces
  58. # queries to 10.1.2.3 to be routed via eth1
  59. # server=10.1.2.3@eth1
  60. # and this sets the source (ie local) address used to talk to
  61. # 10.1.2.3 to 192.168.1.1 port 55 (there must be a interface with that
  62. # IP on the machine, obviously).
  63. # server=10.1.2.3@192.168.1.1#55
  64. # If you want dnsmasq to change uid and gid to something other
  65. # than the default, edit the following lines.
  66. #user=
  67. #group=
  68. # If you want dnsmasq to listen for DHCP and DNS requests only on
  69. # specified interfaces (and the loopback) give the name of the
  70. # interface (eg eth0) here.
  71. # Repeat the line for more than one interface.
  72. #interface=
  73. # Or you can specify which interface _not_ to listen on
  74. #except-interface=
  75. # Or which to listen on by address (remember to include 127.0.0.1 if
  76. # you use this.)
  77. #listen-address=
  78. listen-address=127.0.0.1,10.8.0.1
  79. # If you want dnsmasq to provide only DNS service on an interface,
  80. # configure it as shown above, and then use the following line to
  81. # disable DHCP and TFTP on it.
  82. #no-dhcp-interface=
  83. # On systems which support it, dnsmasq binds the wildcard address,
  84. # even when it is listening on only some interfaces. It then discards
  85. # requests that it shouldn't reply to. This has the advantage of
  86. # working even when interfaces come and go and change address. If you
  87. # want dnsmasq to really bind only the interfaces it is listening on,
  88. # uncomment this option. About the only time you may need this is when
  89. # running another nameserver on the same machine.
  90. bind-interfaces
  91. # If you don't want dnsmasq to read /etc/hosts, uncomment the
  92. # following line.
  93. #no-hosts
  94. # or if you want it to read another file, as well as /etc/hosts, use
  95. # this.
  96. #addn-hosts=/etc/banner_add_hosts
  97. # Set this (and domain: see below) if you want to have a domain
  98. # automatically added to simple names in a hosts-file.
  99. #expand-hosts
  100. # Set the domain for dnsmasq. this is optional, but if it is set, it
  101. # does the following things.
  102. # 1) Allows DHCP hosts to have fully qualified domain names, as long
  103. # as the domain part matches this setting.
  104. # 2) Sets the "domain" DHCP option thereby potentially setting the
  105. # domain of all systems configured by DHCP
  106. # 3) Provides the domain part for "expand-hosts"
  107. #domain=thekelleys.org.uk
  108. # Set a different domain for a particular subnet
  109. #domain=wireless.thekelleys.org.uk,192.168.2.0/24
  110. # Same idea, but range rather then subnet
  111. #domain=reserved.thekelleys.org.uk,192.68.3.100,192.168.3.200
  112. # Uncomment this to enable the integrated DHCP server, you need
  113. # to supply the range of addresses available for lease and optionally
  114. # a lease time. If you have more than one network, you will need to
  115. # repeat this for each network on which you want to supply DHCP
  116. # service.
  117. #dhcp-range=192.168.0.50,192.168.0.150,12h
  118. # This is an example of a DHCP range where the netmask is given. This
  119. # is needed for networks we reach the dnsmasq DHCP server via a relay
  120. # agent. If you don't know what a DHCP relay agent is, you probably
  121. # don't need to worry about this.
  122. #dhcp-range=192.168.0.50,192.168.0.150,255.255.255.0,12h
  123. # This is an example of a DHCP range which sets a tag, so that
  124. # some DHCP options may be set only for this network.
  125. #dhcp-range=set:red,192.168.0.50,192.168.0.150
  126. # Use this DHCP range only when the tag "green" is set.
  127. #dhcp-range=tag:green,192.168.0.50,192.168.0.150,12h
  128. # Specify a subnet which can't be used for dynamic address allocation,
  129. # is available for hosts with matching --dhcp-host lines. Note that
  130. # dhcp-host declarations will be ignored unless there is a dhcp-range
  131. # of some type for the subnet in question.
  132. # In this case the netmask is implied (it comes from the network
  133. # configuration on the machine running dnsmasq) it is possible to give
  134. # an explicit netmask instead.
  135. #dhcp-range=192.168.0.0,static
  136. # Enable DHCPv6. Note that the prefix-length does not need to be specified
  137. # and defaults to 64 if missing/
  138. #dhcp-range=1234::2, 1234::500, 64, 12h
  139. # Do Router Advertisements, BUT NOT DHCP for this subnet.
  140. #dhcp-range=1234::, ra-only
  141. # Do Router Advertisements, BUT NOT DHCP for this subnet, also try and
  142. # add names to the DNS for the IPv6 address of SLAAC-configured dual-stack
  143. # hosts. Use the DHCPv4 lease to derive the name, network segment and
  144. # MAC address and assume that the host will also have an
  145. # IPv6 address calculated using the SLAAC alogrithm.
  146. #dhcp-range=1234::, ra-names
  147. # Do Router Advertisements, BUT NOT DHCP for this subnet.
  148. # Set the lifetime to 46 hours. (Note: minimum lifetime is 2 hours.)
  149. #dhcp-range=1234::, ra-only, 48h
  150. # Do DHCP and Router Advertisements for this subnet. Set the A bit in the RA
  151. # so that clients can use SLAAC addresses as well as DHCP ones.
  152. #dhcp-range=1234::2, 1234::500, slaac
  153. # Do Router Advertisements and stateless DHCP for this subnet. Clients will
  154. # not get addresses from DHCP, but they will get other configuration information.
  155. # They will use SLAAC for addresses.
  156. #dhcp-range=1234::, ra-stateless
  157. # Do stateless DHCP, SLAAC, and generate DNS names for SLAAC addresses
  158. # from DHCPv4 leases.
  159. #dhcp-range=1234::, ra-stateless, ra-names
  160. # Do router advertisements for all subnets where we're doing DHCPv6
  161. # Unless overriden by ra-stateless, ra-names, et al, the router
  162. # advertisements will have the M and O bits set, so that the clients
  163. # get addresses and configuration from DHCPv6, and the A bit reset, so the
  164. # clients don't use SLAAC addresses.
  165. #enable-ra
  166. # Supply parameters for specified hosts using DHCP. There are lots
  167. # of valid alternatives, so we will give examples of each. Note that
  168. # IP addresses DO NOT have to be in the range given above, they just
  169. # need to be on the same network. The order of the parameters in these
  170. # do not matter, it's permissible to give name, address and MAC in any
  171. # order.
  172. # Always allocate the host with Ethernet address 11:22:33:44:55:66
  173. # The IP address 192.168.0.60
  174. #dhcp-host=11:22:33:44:55:66,192.168.0.60
  175. # Always set the name of the host with hardware address
  176. # 11:22:33:44:55:66 to be "fred"
  177. #dhcp-host=11:22:33:44:55:66,fred
  178. # Always give the host with Ethernet address 11:22:33:44:55:66
  179. # the name fred and IP address 192.168.0.60 and lease time 45 minutes
  180. #dhcp-host=11:22:33:44:55:66,fred,192.168.0.60,45m
  181. # Give a host with Ethernet address 11:22:33:44:55:66 or
  182. # 12:34:56:78:90:12 the IP address 192.168.0.60. Dnsmasq will assume
  183. # that these two Ethernet interfaces will never be in use at the same
  184. # time, and give the IP address to the second, even if it is already
  185. # in use by the first. Useful for laptops with wired and wireless
  186. # addresses.
  187. #dhcp-host=11:22:33:44:55:66,12:34:56:78:90:12,192.168.0.60
  188. # Give the machine which says its name is "bert" IP address
  189. # 192.168.0.70 and an infinite lease
  190. #dhcp-host=bert,192.168.0.70,infinite
  191. # Always give the host with client identifier 01:02:02:04
  192. # the IP address 192.168.0.60
  193. #dhcp-host=id:01:02:02:04,192.168.0.60
  194. # Always give the host with client identifier "marjorie"
  195. # the IP address 192.168.0.60
  196. #dhcp-host=id:marjorie,192.168.0.60
  197. # Enable the address given for "judge" in /etc/hosts
  198. # to be given to a machine presenting the name "judge" when
  199. # it asks for a DHCP lease.
  200. #dhcp-host=judge
  201. # Never offer DHCP service to a machine whose Ethernet
  202. # address is 11:22:33:44:55:66
  203. #dhcp-host=11:22:33:44:55:66,ignore
  204. # Ignore any client-id presented by the machine with Ethernet
  205. # address 11:22:33:44:55:66. This is useful to prevent a machine
  206. # being treated differently when running under different OS's or
  207. # between PXE boot and OS boot.
  208. #dhcp-host=11:22:33:44:55:66,id:*
  209. # Send extra options which are tagged as "red" to
  210. # the machine with Ethernet address 11:22:33:44:55:66
  211. #dhcp-host=11:22:33:44:55:66,set:red
  212. # Send extra options which are tagged as "red" to
  213. # any machine with Ethernet address starting 11:22:33:
  214. #dhcp-host=11:22:33:*:*:*,set:red
  215. # Give a fixed IPv6 address and name to client with
  216. # DUID 00:01:00:01:16:d2:83:fc:92:d4:19:e2:d8:b2
  217. # Note the MAC addresses CANNOT be used to identify DHCPv6 clients.
  218. # Note also the they [] around the IPv6 address are obilgatory.
  219. #dhcp-host=id:00:01:00:01:16:d2:83:fc:92:d4:19:e2:d8:b2, fred, [1234::5]
  220. # Ignore any clients which are not specified in dhcp-host lines
  221. # or /etc/ethers. Equivalent to ISC "deny unknown-clients".
  222. # This relies on the special "known" tag which is set when
  223. # a host is matched.
  224. #dhcp-ignore=tag:!known
  225. # Send extra options which are tagged as "red" to any machine whose
  226. # DHCP vendorclass string includes the substring "Linux"
  227. #dhcp-vendorclass=set:red,Linux
  228. # Send extra options which are tagged as "red" to any machine one
  229. # of whose DHCP userclass strings includes the substring "accounts"
  230. #dhcp-userclass=set:red,accounts
  231. # Send extra options which are tagged as "red" to any machine whose
  232. # MAC address matches the pattern.
  233. #dhcp-mac=set:red,00:60:8C:*:*:*
  234. # If this line is uncommented, dnsmasq will read /etc/ethers and act
  235. # on the ethernet-address/IP pairs found there just as if they had
  236. # been given as --dhcp-host options. Useful if you keep
  237. # MAC-address/host mappings there for other purposes.
  238. #read-ethers
  239. # Send options to hosts which ask for a DHCP lease.
  240. # See RFC 2132 for details of available options.
  241. # Common options can be given to dnsmasq by name:
  242. # run "dnsmasq --help dhcp" to get a list.
  243. # Note that all the common settings, such as netmask and
  244. # broadcast address, DNS server and default route, are given
  245. # sane defaults by dnsmasq. You very likely will not need
  246. # any dhcp-options. If you use Windows clients and Samba, there
  247. # are some options which are recommended, they are detailed at the
  248. # end of this section.
  249. # Override the default route supplied by dnsmasq, which assumes the
  250. # router is the same machine as the one running dnsmasq.
  251. #dhcp-option=3,1.2.3.4
  252. # Do the same thing, but using the option name
  253. #dhcp-option=option:router,1.2.3.4
  254. # Override the default route supplied by dnsmasq and send no default
  255. # route at all. Note that this only works for the options sent by
  256. # default (1, 3, 6, 12, 28) the same line will send a zero-length option
  257. # for all other option numbers.
  258. #dhcp-option=3
  259. # Set the NTP time server addresses to 192.168.0.4 and 10.10.0.5
  260. #dhcp-option=option:ntp-server,192.168.0.4,10.10.0.5
  261. # Send DHCPv6 option. Note [] around IPv6 addresses.
  262. #dhcp-option=option6:dns-server,[1234::77],[1234::88]
  263. # Send DHCPv6 option for namservers as the machine running
  264. # dnsmasq and another.
  265. #dhcp-option=option6:dns-server,[::],[1234::88]
  266. # Set the NTP time server address to be the same machine as
  267. # is running dnsmasq
  268. #dhcp-option=42,0.0.0.0
  269. # Set the NIS domain name to "welly"
  270. #dhcp-option=40,welly
  271. # Set the default time-to-live to 50
  272. #dhcp-option=23,50
  273. # Set the "all subnets are local" flag
  274. #dhcp-option=27,1
  275. # Send the etherboot magic flag and then etherboot options (a string).
  276. #dhcp-option=128,e4:45:74:68:00:00
  277. #dhcp-option=129,NIC=eepro100
  278. # Specify an option which will only be sent to the "red" network
  279. # (see dhcp-range for the declaration of the "red" network)
  280. # Note that the tag: part must precede the option: part.
  281. #dhcp-option = tag:red, option:ntp-server, 192.168.1.1
  282. # The following DHCP options set up dnsmasq in the same way as is specified
  283. # for the ISC dhcpcd in
  284. # http://www.samba.org/samba/ftp/docs/textdocs/DHCP-Server-Configuration.txt
  285. # adapted for a typical dnsmasq installation where the host running
  286. # dnsmasq is also the host running samba.
  287. # you may want to uncomment some or all of them if you use
  288. # Windows clients and Samba.
  289. #dhcp-option=19,0 # option ip-forwarding off
  290. #dhcp-option=44,0.0.0.0 # set netbios-over-TCP/IP nameserver(s) aka WINS server(s)
  291. #dhcp-option=45,0.0.0.0 # netbios datagram distribution server
  292. #dhcp-option=46,8 # netbios node type
  293. # Send an empty WPAD option. This may be REQUIRED to get windows 7 to behave.
  294. #dhcp-option=252,"\n"
  295. # Send RFC-3397 DNS domain search DHCP option. WARNING: Your DHCP client
  296. # probably doesn't support this......
  297. #dhcp-option=option:domain-search,eng.apple.com,marketing.apple.com
  298. # Send RFC-3442 classless static routes (note the netmask encoding)
  299. #dhcp-option=121,192.168.1.0/24,1.2.3.4,10.0.0.0/8,5.6.7.8
  300. # Send vendor-class specific options encapsulated in DHCP option 43.
  301. # The meaning of the options is defined by the vendor-class so
  302. # options are sent only when the client supplied vendor class
  303. # matches the class given here. (A substring match is OK, so "MSFT"
  304. # matches "MSFT" and "MSFT 5.0"). This example sets the
  305. # mtftp address to 0.0.0.0 for PXEClients.
  306. #dhcp-option=vendor:PXEClient,1,0.0.0.0
  307. # Send microsoft-specific option to tell windows to release the DHCP lease
  308. # when it shuts down. Note the "i" flag, to tell dnsmasq to send the
  309. # value as a four-byte integer - that's what microsoft wants. See
  310. # http://technet2.microsoft.com/WindowsServer/en/library/a70f1bb7-d2d4-49f0-96d6-4b7414ecfaae1033.mspx?mfr=true
  311. #dhcp-option=vendor:MSFT,2,1i
  312. # Send the Encapsulated-vendor-class ID needed by some configurations of
  313. # Etherboot to allow is to recognise the DHCP server.
  314. #dhcp-option=vendor:Etherboot,60,"Etherboot"
  315. # Send options to PXELinux. Note that we need to send the options even
  316. # though they don't appear in the parameter request list, so we need
  317. # to use dhcp-option-force here.
  318. # See http://syslinux.zytor.com/pxe.php#special for details.
  319. # Magic number - needed before anything else is recognised
  320. #dhcp-option-force=208,f1:00:74:7e
  321. # Configuration file name
  322. #dhcp-option-force=209,configs/common
  323. # Path prefix
  324. #dhcp-option-force=210,/tftpboot/pxelinux/files/
  325. # Reboot time. (Note 'i' to send 32-bit value)
  326. #dhcp-option-force=211,30i
  327. # Set the boot filename for netboot/PXE. You will only need
  328. # this is you want to boot machines over the network and you will need
  329. # a TFTP server; either dnsmasq's built in TFTP server or an
  330. # external one. (See below for how to enable the TFTP server.)
  331. #dhcp-boot=pxelinux.0
  332. # The same as above, but use custom tftp-server instead machine running dnsmasq
  333. #dhcp-boot=pxelinux,server.name,192.168.1.100
  334. # Boot for Etherboot gPXE. The idea is to send two different
  335. # filenames, the first loads gPXE, and the second tells gPXE what to
  336. # load. The dhcp-match sets the gpxe tag for requests from gPXE.
  337. #dhcp-match=set:gpxe,175 # gPXE sends a 175 option.
  338. #dhcp-boot=tag:!gpxe,undionly.kpxe
  339. #dhcp-boot=mybootimage
  340. # Encapsulated options for Etherboot gPXE. All the options are
  341. # encapsulated within option 175
  342. #dhcp-option=encap:175, 1, 5b # priority code
  343. #dhcp-option=encap:175, 176, 1b # no-proxydhcp
  344. #dhcp-option=encap:175, 177, string # bus-id
  345. #dhcp-option=encap:175, 189, 1b # BIOS drive code
  346. #dhcp-option=encap:175, 190, user # iSCSI username
  347. #dhcp-option=encap:175, 191, pass # iSCSI password
  348. # Test for the architecture of a netboot client. PXE clients are
  349. # supposed to send their architecture as option 93. (See RFC 4578)
  350. #dhcp-match=peecees, option:client-arch, 0 #x86-32
  351. #dhcp-match=itanics, option:client-arch, 2 #IA64
  352. #dhcp-match=hammers, option:client-arch, 6 #x86-64
  353. #dhcp-match=mactels, option:client-arch, 7 #EFI x86-64
  354. # Do real PXE, rather than just booting a single file, this is an
  355. # alternative to dhcp-boot.
  356. #pxe-prompt="What system shall I netboot?"
  357. # or with timeout before first available action is taken:
  358. #pxe-prompt="Press F8 for menu.", 60
  359. # Available boot services. for PXE.
  360. #pxe-service=x86PC, "Boot from local disk"
  361. # Loads <tftp-root>/pxelinux.0 from dnsmasq TFTP server.
  362. #pxe-service=x86PC, "Install Linux", pxelinux
  363. # Loads <tftp-root>/pxelinux.0 from TFTP server at 1.2.3.4.
  364. # Beware this fails on old PXE ROMS.
  365. #pxe-service=x86PC, "Install Linux", pxelinux, 1.2.3.4
  366. # Use bootserver on network, found my multicast or broadcast.
  367. #pxe-service=x86PC, "Install windows from RIS server", 1
  368. # Use bootserver at a known IP address.
  369. #pxe-service=x86PC, "Install windows from RIS server", 1, 1.2.3.4
  370. # If you have multicast-FTP available,
  371. # information for that can be passed in a similar way using options 1
  372. # to 5. See page 19 of
  373. # http://download.intel.com/design/archives/wfm/downloads/pxespec.pdf
  374. # Enable dnsmasq's built-in TFTP server
  375. #enable-tftp
  376. # Set the root directory for files available via FTP.
  377. #tftp-root=/var/ftpd
  378. # Make the TFTP server more secure: with this set, only files owned by
  379. # the user dnsmasq is running as will be send over the net.
  380. #tftp-secure
  381. # This option stops dnsmasq from negotiating a larger blocksize for TFTP
  382. # transfers. It will slow things down, but may rescue some broken TFTP
  383. # clients.
  384. #tftp-no-blocksize
  385. # Set the boot file name only when the "red" tag is set.
  386. #dhcp-boot=net:red,pxelinux.red-net
  387. # An example of dhcp-boot with an external TFTP server: the name and IP
  388. # address of the server are given after the filename.
  389. # Can fail with old PXE ROMS. Overridden by --pxe-service.
  390. #dhcp-boot=/var/ftpd/pxelinux.0,boothost,192.168.0.3
  391. # If there are multiple external tftp servers having a same name
  392. # (using /etc/hosts) then that name can be specified as the
  393. # tftp_servername (the third option to dhcp-boot) and in that
  394. # case dnsmasq resolves this name and returns the resultant IP
  395. # addresses in round robin fasion. This facility can be used to
  396. # load balance the tftp load among a set of servers.
  397. #dhcp-boot=/var/ftpd/pxelinux.0,boothost,tftp_server_name
  398. # Set the limit on DHCP leases, the default is 150
  399. #dhcp-lease-max=150
  400. # The DHCP server needs somewhere on disk to keep its lease database.
  401. # This defaults to a sane location, but if you want to change it, use
  402. # the line below.
  403. #dhcp-leasefile=/var/lib/misc/dnsmasq.leases
  404. # Set the DHCP server to authoritative mode. In this mode it will barge in
  405. # and take over the lease for any client which broadcasts on the network,
  406. # whether it has a record of the lease or not. This avoids long timeouts
  407. # when a machine wakes up on a new network. DO NOT enable this if there's
  408. # the slightest chance that you might end up accidentally configuring a DHCP
  409. # server for your campus/company accidentally. The ISC server uses
  410. # the same option, and this URL provides more information:
  411. # http://www.isc.org/files/auth.html
  412. #dhcp-authoritative
  413. # Run an executable when a DHCP lease is created or destroyed.
  414. # The arguments sent to the script are "add" or "del",
  415. # then the MAC address, the IP address and finally the hostname
  416. # if there is one.
  417. #dhcp-script=/bin/echo
  418. # Set the cachesize here.
  419. #cache-size=150
  420. # If you want to disable negative caching, uncomment this.
  421. #no-negcache
  422. # Normally responses which come form /etc/hosts and the DHCP lease
  423. # file have Time-To-Live set as zero, which conventionally means
  424. # do not cache further. If you are happy to trade lower load on the
  425. # server for potentially stale date, you can set a time-to-live (in
  426. # seconds) here.
  427. #local-ttl=
  428. # If you want dnsmasq to detect attempts by Verisign to send queries
  429. # to unregistered .com and .net hosts to its sitefinder service and
  430. # have dnsmasq instead return the correct NXDOMAIN response, uncomment
  431. # this line. You can add similar lines to do the same for other
  432. # registries which have implemented wildcard A records.
  433. #bogus-nxdomain=64.94.110.11
  434. # If you want to fix up DNS results from upstream servers, use the
  435. # alias option. This only works for IPv4.
  436. # This alias makes a result of 1.2.3.4 appear as 5.6.7.8
  437. #alias=1.2.3.4,5.6.7.8
  438. # and this maps 1.2.3.x to 5.6.7.x
  439. #alias=1.2.3.0,5.6.7.0,255.255.255.0
  440. # and this maps 192.168.0.10->192.168.0.40 to 10.0.0.10->10.0.0.40
  441. #alias=192.168.0.10-192.168.0.40,10.0.0.0,255.255.255.0
  442. # Change these lines if you want dnsmasq to serve MX records.
  443. # Return an MX record named "maildomain.com" with target
  444. # servermachine.com and preference 50
  445. #mx-host=maildomain.com,servermachine.com,50
  446. # Set the default target for MX records created using the localmx option.
  447. #mx-target=servermachine.com
  448. # Return an MX record pointing to the mx-target for all local
  449. # machines.
  450. #localmx
  451. # Return an MX record pointing to itself for all local machines.
  452. #selfmx
  453. # Change the following lines if you want dnsmasq to serve SRV
  454. # records. These are useful if you want to serve ldap requests for
  455. # Active Directory and other windows-originated DNS requests.
  456. # See RFC 2782.
  457. # You may add multiple srv-host lines.
  458. # The fields are <name>,<target>,<port>,<priority>,<weight>
  459. # If the domain part if missing from the name (so that is just has the
  460. # service and protocol sections) then the domain given by the domain=
  461. # config option is used. (Note that expand-hosts does not need to be
  462. # set for this to work.)
  463. # A SRV record sending LDAP for the example.com domain to
  464. # ldapserver.example.com port 389
  465. #srv-host=_ldap._tcp.example.com,ldapserver.example.com,389
  466. # A SRV record sending LDAP for the example.com domain to
  467. # ldapserver.example.com port 389 (using domain=)
  468. #domain=example.com
  469. #srv-host=_ldap._tcp,ldapserver.example.com,389
  470. # Two SRV records for LDAP, each with different priorities
  471. #srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,1
  472. #srv-host=_ldap._tcp.example.com,ldapserver.example.com,389,2
  473. # A SRV record indicating that there is no LDAP server for the domain
  474. # example.com
  475. #srv-host=_ldap._tcp.example.com
  476. # The following line shows how to make dnsmasq serve an arbitrary PTR
  477. # record. This is useful for DNS-SD. (Note that the
  478. # domain-name expansion done for SRV records _does_not
  479. # occur for PTR records.)
  480. #ptr-record=_http._tcp.dns-sd-services,"New Employee Page._http._tcp.dns-sd-services"
  481. # Change the following lines to enable dnsmasq to serve TXT records.
  482. # These are used for things like SPF and zeroconf. (Note that the
  483. # domain-name expansion done for SRV records _does_not
  484. # occur for TXT records.)
  485. #Example SPF.
  486. #txt-record=example.com,"v=spf1 a -all"
  487. #Example zeroconf
  488. #txt-record=_http._tcp.example.com,name=value,paper=A4
  489. # Provide an alias for a "local" DNS name. Note that this _only_ works
  490. # for targets which are names from DHCP or /etc/hosts. Give host
  491. # "bert" another name, bertrand
  492. #cname=bertand,bert
  493. # For debugging purposes, log each DNS query as it passes through
  494. # dnsmasq.
  495. #log-queries
  496. # Log lots of extra information about DHCP transactions.
  497. #log-dhcp
  498. # Include a another lot of configuration options.
  499. #conf-file=/etc/dnsmasq.more.conf
  500. #conf-dir=/etc/dnsmasq.d