dnsmasq_dhcpdv4.conf.tpl 1.5 KB

123456789101112131415161718192021222324252627282930
  1. # Do DHCP for this subnet.
  2. dhcp-range=interface:<TPL:WIFI_DEVICE>,<TPL:IP4_NAT_PREFIX>.2,<TPL:IP4_NAT_PREFIX>.254,4h
  3. # Send DHCPv4 option.
  4. dhcp-option=option:dns-server,<TPL:IP4_DNS0>,<TPL:IP4_DNS1>
  5. # Set the DHCP server to authoritative mode. In this mode it will barge in
  6. # and take over the lease for any client which broadcasts on the network,
  7. # whether it has a record of the lease or not. This avoids long timeouts
  8. # when a machine wakes up on a new network. DO NOT enable this if there's
  9. # the slightest chance that you might end up accidentally configuring a DHCP
  10. # server for your campus/company accidentally. The ISC server uses
  11. # the same option, and this URL provides more information:
  12. # http://www.isc.org/files/auth.html
  13. dhcp-authoritative
  14. # On systems which support it, dnsmasq binds the wildcard address,
  15. # even when it is listening on only some interfaces. It then discards
  16. # requests that it shouldn't reply to. This has the advantage of
  17. # working even when interfaces come and go and change address. If you
  18. # want dnsmasq to really bind only the interfaces it is listening on,
  19. # uncomment this option. About the only time you may need this is when
  20. # running another nameserver on the same machine.
  21. bind-interfaces
  22. # If this line is uncommented, dnsmasq will read /etc/ethers and act
  23. # on the ethernet-address/IP pairs found there just as if they had
  24. # been given as --dhcp-host options. Useful if you keep
  25. # MAC-address/host mappings there for other purposes.
  26. #read-ethers