summaryrefslogtreecommitdiffstats
path: root/rules/dnsmasq.in
blob: c8de883f33cf7c196a39afda561a238e405858b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
## SECTION=networking
#
# dnsmasq configuration
#
menuconfig DNSMASQ
	tristate
	prompt "dnsmasq                       "
	select DBUS	if DNSMASQ_DBUS
	select LUA	if DNSMASQ_SCRIPT_LUA
	select ROOTFS_VAR_LIB
	help
	  A small caching DNS proxy and DHCP server.

 	  Dnsmasq is lightweight, easy to configure DNS forwarder
	  and DHCP server. It is designed to provide DNS and,
	  optionally, DHCP, to a small network. It can serve the
	  names of local machines which are not in the global DNS.
	  The DHCP server integrates with the DNS server and allows
	  machines with DHCP-allocated addresses to appear in the DNS
	  with names configured either in each host or in a central
	  configuration file. Dnsmasq supports static and dynamic
 	  DHCP leases and BOOTP for network booting of diskless machines.
	  Note: In order to make dnsmasq work as DHCP, you have to enable
	  the following kernel features: FIXME

if DNSMASQ

comment "build options   ---"

config DNSMASQ_DBUS
	bool
	prompt "include DBUS support [BROKEN]"
	depends on BROKEN
	help
	  This enables DBUS support in dnsmasq. This is not only a build
	  option. You also have to enable it at runtime. FIXME: Show how,
	  see DBUS document in dnsmasq packet

config DNSMASQ_TFTP
	bool
	prompt "include TFTP"
	help
	  This includes TFTP services into dnsmasq

config DNSMASQ_DHCP
	bool
	default y
	prompt "include DHCP"
	help
	  This includes DHCP services into dnsmasq

config DNSMASQ_SCRIPT
	bool
	default y
	depends on DNSMASQ_DHCP
	prompt "include lease script support"
	help
	  Without this option it is not possible to call scripts when a lease changes

config DNSMASQ_SCRIPT_LUA
	bool
	default n
	depends on DNSMASQ_SCRIPT
	prompt "include lease script LUA support"
	help
	  This includes LUA script capabilities for lease scripts

config DNSMASQ_DNSSEC
	bool
	default n
	prompt "include DNSSEC support"
	select NETTLE
	help
	  Without this option it is not possible to call scripts when a lease changes

comment "runtime options   ---"

choice
	prompt "Kind of startup"

	config DNSMASQ_INETD
		bool
		prompt "inetd driven"
		help
		  Install a inetd rule for dnsmasq. This option adds the following line
		  to /etc/inetd.conf.d/dnsmasq:

		  domain stream tcp nowait root /sbin/dnsmasq domain

		  Note: You must enable one of the two possible inet daemons:
		  There is one embedded in busybox and one in packet inetutils.
		  Note: If you want to use dnsmasq's DHCP feature, you can't
		  run it from inetd. In this case you need the standalone
		  startscript!

	config DNSMASQ_STARTSCRIPT
		bool
		prompt "standalone"
		help
		  This installs dnsmasq startup script /etc/init.d/dnsmasq.
		  With this script the dnsmasq server will be started at system
		  startup and waits for any kind of DHCP or DNS requests.

endchoice

config DNSMASQ_SYSTEMD_UNIT
	bool
	default y
	depends on SYSTEMD
	prompt "install systemd unit files for dnsmasq"

endif