> less /etc/rc.d/named , который мог остаться от 8 и старый bind мог
> быть с опцией REPLACE_BASE
> перемести(удали) /etc/rc.d/named, переустанови bind Старый был с опцией REPLACE_BASE. Я бы и новый так поставил, но такой опции уже нету.
/etc/rc.d/named я удалил, странно все это.
Вот отрывок скрипта, там пути к новому bind'у. Но при запуске он ищет старый /usr/sbin/... Откуда он берет пути?
me@server:/usr/local/etc/rc.d # cat named
#!/bin/sh
#
# $FreeBSD: head/dns/bind910/files/named.in 352512 2014-04-28 15:42:06Z mat $
#
# PROVIDE: named
# REQUIRE: FILESYSTEMS defaultroute ldconfig
# BEFORE: NETWORKING
# KEYWORD: shutdown
. /etc/rc.subr
name=named
rcvar=named_enable
load_rc_config $name
extra_commands=reload
start_precmd=named_prestart
start_postcmd=named_poststart
reload_cmd=named_reload
stop_cmd=named_stop
named_enable=${named_enable:-"NO"} # Run named, the DNS server (or NO).
named_program=${named_program:-"/usr/local/sbin/named"} # Path to named, if you want a different one.
named_conf=${named_conf:-"/usr/local/etc/namedb/named.conf"} # Path to the configuration file
named_flags=${named_flags:-""} # Use this for flags OTHER than -u and -c
named_uid=${named_uid:-"bind"} # User to run named as
named_wait=${named_wait:-"NO"} # Wait for working name service before exiting
named_wait_host=${named_wait_host:-"localhost"} # Hostname to check if named_wait is enabled
named_auto_forward=${named_auto_forward:-"NO"} # Set up forwarders from /etc/resolv.conf
named_auto_forward_only=${named_auto_forward_only:-"NO"} # Do "forward only" instead of "forward first"
named_confdir="${named_conf%/*}" # Not a configuration directive but makes rclint happy.
named_poststart()
{
if checkyesno named_wait; then
until ${command%/sbin/named}/bin/host $named_wait_host >/dev/null 2>&1; do
echo " Waiting for nameserver to resolve $named_wait_host"
sleep 1
done
fi
}
named_reload()
{
# This is a one line function, but ${command}б═is not defined early
# enough to be there when the reload_cmd variable is defined up there.
${command%/named}/rndc reload
}