Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
PKG_NAME:=bind
PKG_VERSION:=9.18.10
PKG_NAME:=bind
PKG_VERSION:=9.18.10
USERID:=bind=57:bind=57
PKG_MAINTAINER:=Noah Meyerhans <frodo@morgul.net>
USERID:=bind=57:bind=57
PKG_MAINTAINER:=Noah Meyerhans <frodo@morgul.net>
+no_ipv6() {
+ [ -z "$(ip -6 -o route show default)" ]
+}
+
reload_service() {
rndc -q reload
}
reload_service() {
rndc -q reload
}
+ local args=
+ [ no_ipv6 ] && args="-4"
+
- procd_set_param command /usr/sbin/named -u bind -f -c $config_file
+ procd_set_param command /usr/sbin/named -u bind -f $args -c $config_file
procd_set_param file $config_file \
$config_dir/bind.keys \
$named_options_file \
procd_set_param file $config_file \
$config_dir/bind.keys \
$named_options_file \