1fae95c381
version of BIND than is in the base OS (some people require features from this version e.g. DNS64), but note that it does not include the hardening changes made to the version in base. feedback from naddy@ giovanni@, ok giovanni@. "BIND is open source software that implements the Domain Name System (DNS) protocols for the Internet. It is a reference implementation of those protocols, but it is also production-grade software, suitable for use in high-volume and high-reliability applications."
21 lines
460 B
Bash
21 lines
460 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: isc_named.rc,v 1.1.1.1 2012/07/19 08:36:45 sthen Exp $
|
|
|
|
daemon="${TRUEPREFIX}/sbin/named"
|
|
daemon_flags="-t ${LOCALSTATEDIR}/named -u named"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_pre() {
|
|
if ! cmp -s /etc/rndc.key ${LOCALSTATEDIR}/named/etc/rndc.key ; then
|
|
if ${TRUEPREFIX}/sbin/rndc-confgen -a -t ${LOCALSTATEDIR}/named \
|
|
>/dev/null 2>&1; then
|
|
chmod 0640 ${LOCALSTATEDIR}/named/etc/rndc.key \
|
|
>/dev/null 2>&1
|
|
fi
|
|
fi
|
|
}
|
|
|
|
rc_cmd $1
|