cca9b4b7d6
dhowland. Dnsmasq is a 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.
17 lines
275 B
Bash
17 lines
275 B
Bash
#!/bin/sh
|
|
#
|
|
# $NetBSD: dnsmasq.sh,v 1.1.1.1 2005/10/18 04:41:59 minskim Exp $
|
|
#
|
|
|
|
# PROVIDE: dnsmasq
|
|
# REQUIRE: DAEMON SERVERS
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="dnsmasq"
|
|
rcvar=$name
|
|
command="@PREFIX@/sbin/${name}"
|
|
pidfile="/var/run/${name}.pid"
|
|
|
|
load_rc_config $name
|
|
run_rc_command "$1"
|