dnsmasq.conf 949 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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
  32. # nfsroot example for a host
  33. #dhcp-host=00:0c:42:0a:7d:d3,10.0.0.4,net:rb532
  34. #dhcp-option=rb532,option:root-path,/nfsroot/rb532,nfsvers=3
  35. # pxeboot example
  36. dhcp-boot=pxelinux.0