dnsmasq_dhcpdv4.conf 1.5 KB

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