- It appears that your working directory is not writable anymore.
- [root@matrix { ~ }] /etc/rc.d/named restart
- named not running? (check /var/run/named/pid).
- Starting named.
- [root@matrix { ~ }] rndc reload
- server reload successful
- [root@matrix { ~ }] cat /var/log/messages | tail -20
- Jul 4 10:00:59 matrix named[55566]: creating IPv4 interface re0 failed; interface ignored
- Jul 4 10:00:59 matrix named[55566]: could not listen on UDP socket: permission denied
- Jul 4 10:00:59 matrix named[55566]: creating IPv4 interface re0 failed; interface ignored
- Jul 4 10:00:59 matrix named[55566]: could not listen on UDP socket: permission denied
- Jul 4 10:00:59 matrix named[55566]: creating IPv4 interface lo0 failed; interface ignored
- Jul 4 10:00:59 matrix named[55566]: zone cutechat.org/IN: NS 'ns1.cutechat.org' has no address records (A or AAAA)
- Jul 4 10:00:59 matrix named[55566]: zone cutechat.org/IN: NS 'ns2.cutechat.org' has no address records (A or AAAA)
- Jul 4 10:00:59 matrix named[55566]: running
- Jul 4 10:01:13 matrix named[55498]: stopping command channel on 127.0.0.1#953
- Jul 4 10:01:13 matrix named[55566]: exiting
- Jul 4 10:01:13 matrix named[55498]: exiting
- Jul 4 10:01:31 matrix named[55643]: starting BIND 9.4.3-P2 -t /var/named -u bind
- Jul 4 10:01:31 matrix named[55643]: command channel listening on 127.0.0.1#953
- Jul 4 10:01:31 matrix named[55643]: /etc/namedb/named.conf:11: couldn't add command channel 127.0.0.1#953: address in use
- Jul 4 10:01:31 matrix named[55643]: the working directory is not writable
- Jul 4 10:01:31 matrix named[55643]: zone cutechat.org/IN: NS 'ns1.cutechat.org' has no address records (A or AAAA)
- Jul 4 10:01:31 matrix named[55643]: zone cutechat.org/IN: NS 'ns2.cutechat.org' has no address records (A or AAAA)
- Jul 4 10:01:31 matrix named[55643]: running
- Jul 4 10:01:34 matrix named[55643]: /etc/namedb/named.conf:11: couldn't add command channel 127.0.0.1#953: permission denied
- Jul 4 10:01:34 matrix named[55643]: the working directory is not writable
- [root@matrix { ~ }] ps aux | grep named
- root 2042 0.0 0.1 3184 1112 ?? Ss 9:38PM 0:01.30 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log -ss -c
- bind 55643 0.0 11.4 267252 233436 ?? Ss 10:01AM 0:00.87 /usr/sbin/named -t /var/named -u bind
- root 55661 0.0 0.1 1660 1052 p3 R+ 10:02AM 0:00.00 grep named
- [root@matrix { ~ }] /etc/rc.d/named restart
- named not running? (check /var/run/named/pid).
- Starting named.
- [root@matrix { ~ }]
- Thanks!
- ---------------------------------------
- Jeremy Ewing
- Systems Administrator
- SharkTECH Internet Services
- When you modified the named.conf, you removed a number of settings, these settings were needed so that the named service knew where to look for the running pid file. The /etc/rc.d/named start was not writing to the correct location, but was starting named.
- I have added the following back to the named.conf
- options {
- // Relative to the chroot directory, if any
- directory "/etc/namedb";
- pid-file "/var/run/named/pid";
- dump-file "/var/dump/named_dump.db";
- statistics-file "/var/stats/named.stats";
- listen-on { 67.21.73.130; 67.21.73.131; };
- // listen-on-v6 { ::1; };
- disable-empty-zone "255.255.255.255.IN-ADDR.ARPA";
- disable-empty-zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
- disable-empty-zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA";
- // forward only;
- /* forwarders {
- 127.0.0.1;
- };
- */
- };
- After killing everything for bind, I get the following.
- [root@matrix { /etc/namedb }] ps aux | grep named
- bind 56115 0.0 11.3 269300 232904 ?? Ss 10:09AM 0:00.94 /usr/sbin/named -t /var/named -u bind
- root 56278 0.0 0.1 1660 1052 p3 R+ 10:13AM 0:00.00 grep named
- [root@matrix { /etc/namedb }] killall -u bind
- [root@matrix { /etc/namedb }] ps aux | grep named
- root 56282 0.0 0.1 1660 1052 p3 R+ 10:13AM 0:00.00 grep named
- [root@matrix { /etc/namedb }] ps aux | grep bind
- root 56284 0.0 0.1 1660 1052 p3 R+ 10:13AM 0:00.00 grep bind
- [root@matrix { /etc/namedb }] /etc/rc.d/named restart
- named not running? (check /var/run/named/pid).
- Starting named.
- [root@matrix { /etc/namedb }] /etc/rc.d/named restart
- Stopping named.
- Waiting for PIDS: 56404.
- Starting named.
- [root@matrix { /etc/namedb }] /etc/rc.d/named restart
- Stopping named.
- Waiting for PIDS: 56484.
- Starting named.
- [root@matrix { /etc/namedb }]
- Thanks!
- ---------------------------------------
- Jeremy Ewing
- Systems Administrator
- SharkTECH Internet Services