dnsmasq.conf 767 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # filter what we send upstream
  2. user=dnsmasq
  3. domain-needed
  4. bogus-priv
  5. localise-queries
  6. # allow /etc/hosts and dhcp lookups via *.lan
  7. local=/lan/
  8. domain=lan
  9. expand-hosts
  10. # add more dhcp-range options for every subnet
  11. dhcp-range=192.168.1.129,192.168.1.254,255.255.255.0,72h
  12. interface=lo
  13. interface=eth0
  14. # Enable dnsmasq's built-in TFTP server
  15. enable-tftp
  16. # Set the root directory for files available via TFTP.
  17. tftp-root=/tftpboot
  18. dhcp-authoritative
  19. dhcp-leasefile=/tmp/dhcp.leases
  20. # use /etc/ethers for static hosts
  21. # <hwaddr> <ipaddr>
  22. read-ethers
  23. # other useful options (0.0.0.0 means server itself)
  24. # default route(s):
  25. dhcp-option=3,0.0.0.0
  26. # DNS server(s):
  27. dhcp-option=6,0.0.0.0
  28. # NTP server(s):
  29. dhcp-option=42,0.0.0.0
  30. # WINS server(s):
  31. #dhcp-option=44,0.0.0.0