Собственно, анализ /var/log/messages выявил что named пытается запуститься дважды:
Код: Выделить всё
router# cat /var/log/messages | grep named
Jan 22 17:11:28 router named[881]: starting BIND 9.6.-ESV-R3 -u bind -t /var/named -t /var/named -u bind
Jan 22 17:11:28 router named[881]: built with '--prefix=/usr' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--enable-threads' '--enable-getifaddrs' '--disable-linux-caps' '--with-openssl=/usr' '--with-randomdev=/dev/random' '--without-idn' '--without-libxml2'
Jan 22 17:11:28 router named[881]: command channel listening on 127.0.0.1#953
Jan 22 17:11:28 router named[881]: command channel listening on ::1#953
Jan 22 17:11:28 router named[881]: running
Jan 22 17:11:28 router named[965]: starting BIND 9.6.-ESV-R3 -u bind -t /var/named -t /var/named -u bind
Jan 22 17:11:28 router named[965]: built with '--prefix=/usr' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--enable-threads' '--enable-getifaddrs' '--disable-linux-caps' '--with-openssl=/usr' '--with-randomdev=/dev/random' '--without-idn' '--without-libxml2'
Jan 22 17:11:28 router named[965]: could not listen on UDP socket: address in use
Jan 22 17:11:28 router named[965]: creating IPv4 interface lo0 failed; interface ignored
Jan 22 17:11:28 router named[965]: could not listen on UDP socket: address in use
Jan 22 17:11:28 router named[965]: creating IPv4 interface wlan0 failed; interface ignored
Jan 22 17:11:28 router named[965]: not listening on any interfaces
Jan 22 17:11:28 router named[965]: couldn't add command channel 127.0.0.1#953: address in use
Jan 22 17:11:28 router named[965]: couldn't add command channel ::1#953: address in use
Jan 22 17:11:28 router named[965]: could not listen on UDP socket: permission denied
Jan 22 17:11:28 router named[965]: creating IPv4 interface lo0 failed; interface ignored
Jan 22 17:11:28 router named[965]: could not listen on UDP socket: permission denied
Jan 22 17:11:28 router named[965]: creating IPv4 interface wlan0 failed; interface ignored
Jan 22 17:11:28 router named[965]: running
Код: Выделить всё
router# ps ax | grep named
752 ?? Ss 0:00.03 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -s
881 ?? Is 0:00.05 /usr/sbin/named -u bind -t /var/named -t /var/named -u bind
965 ?? Is 0:00.04 /usr/sbin/named -u bind -t /var/named -t /var/named -u bind
1386 0 RL+ 0:00.00 grep named
Вот rc.conf:
Код: Выделить всё
# -- sysinstall generated deltas -- # Sun Jan 15 18:36:22 2012
# Created: Sun Jan 15 18:36:22 2012
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
# gateway_enable="YES"
inetd_enable="YES"
sshd_enable="YES"
hostname="router"
#######################################################
# PPPoE configuration
#######################################################
ifconfig_re0="DHCP"
ppp_enable="YES"
ppp_mode="ddial"
ppp_nat="YES"
ppp_profile="ujk"
ppp_user="root"
######################################################
# WiFi Access Point configuration
######################################################
wlans_ath0="wlan0"
create_args_wlan0="wlanmode hostap"
ifconfig_wlan0="inet 192.168.0.1 netmask 255.255.255.0 ssid XXX mediaopt hostap"
gateway_enable="YES"
hostapd_enable="YES"
######################################################
# Hostapd configuration
######################################################
dhcpd_enable="YES"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="wlan0"
######################################################
# Packet filter section
######################################################
pf_enable="YES"
pf_rules="/etc/pf.conf"
pf_flags=""
pflog_enable="YES"
pflog_logfile="/var/log/pflog"
pflog_flags=""
named_enable="YES"
named_flags="-u bind -t /var/named"
named_chrootdir="/var/named"