## 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