Advertisement
Guest User

Untitled

a guest
Nov 28th, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.94 KB | None | 0 0
  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.  
  7. # Listen on this specific port instead of the standard DNS port
  8. # (53). Setting this to zero completely disables DNS function,
  9. # leaving only DHCP and/or TFTP.
  10. port=0
  11.  
  12. listen-address=192.168.1.2
  13.  
  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.  
  23. # Include another lot of configuration options.
  24. #conf-file=/etc/dnsmasq.more.conf
  25. conf-dir=/etc/dnsmasq.d
  26.  
  27. # If you don't want dnsmasq to read /etc/hosts, uncomment the
  28. # following line.
  29. #no-hosts
  30. # or if you want it to read another file, as well as /etc/hosts, use
  31. # this.
  32. #addn-hosts=/etc/banner_add_hosts
  33.  
  34. dhcp-hostsdir=/etc/dnsmasq.d/bifrost.dhcp-hosts.d
  35.  
  36. # Set the domain for dnsmasq. this is optional, but if it is set, it
  37. # does the following things.
  38. # 1) Allows DHCP hosts to have fully qualified domain names, as long
  39. # as the domain part matches this setting.
  40. # 2) Sets the "domain" DHCP option thereby potentially setting the
  41. # domain of all systems configured by DHCP
  42. # 3) Provides the domain part for "expand-hosts"
  43. #domain=thekelleys.org.uk
  44.  
  45. # Uncomment this to enable the integrated DHCP server, you need
  46. # to supply the range of addresses available for lease and optionally
  47. # a lease time. If you have more than one network, you will need to
  48. # repeat this for each network on which you want to supply DHCP
  49. # service.
  50. dhcp-range=192.168.3.1,192.168.3.254,255.255.0.0,12h
  51.  
  52. # Override the default route supplied by dnsmasq, which assumes the
  53. # router is the same machine as the one running dnsmasq.
  54. dhcp-option=3,192.168.1.1
  55.  
  56. dhcp-option=6,192.168.1.1,10.10.10.10,10.10.10.11
  57.  
  58.  
  59. dhcp-match=set:ipxe,175 # iPXE sends a 175 option.
  60. dhcp-match=set:efi,option:client-arch,7
  61. dhcp-match=set:efi,option:client-arch,9
  62. dhcp-match=set:efi,option:client-arch,11
  63.  
  64. dhcp-optsdir=/etc/dnsmasq.d/bifrost.dhcp-opts.d
  65.  
  66.  
  67. enable-tftp
  68. tftp-root=/tftpboot
  69.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement