Recent Posts
None | 44 sec ago
None | 44 sec ago
C# | 1 min ago
None | 1 min ago
None | 1 min ago
None | 1 min ago
C++ | 2 min ago
None | 2 min ago
None | 2 min ago
None | 2 min ago
Sitereport
Find cool info about any domain on the internet?
visit sitereport
Free Subdomains
Want a pastebin.com sub-domain for your community?
learn more...
What is pastebin?
Pastebin is a website that hosts all your text & code on dedicated servers for easy sharing.
learn more...
Learn a little bit about the new Pastebin.com on our help page. hide message
By JaSoN on the 4th of Jul 2009 06:42:36 PM Download | Raw | Embed | Report
  1. It appears that your working directory is not writable anymore.
  2.  
  3. [root@matrix { ~ }] /etc/rc.d/named restart
  4. named not running? (check /var/run/named/pid).
  5. Starting named.
  6. [root@matrix { ~ }] rndc reload
  7. server reload successful
  8. [root@matrix { ~ }] cat /var/log/messages | tail -20
  9. Jul 4 10:00:59 matrix named[55566]: creating IPv4 interface re0 failed; interface ignored
  10. Jul 4 10:00:59 matrix named[55566]: could not listen on UDP socket: permission denied
  11. Jul 4 10:00:59 matrix named[55566]: creating IPv4 interface re0 failed; interface ignored
  12. Jul 4 10:00:59 matrix named[55566]: could not listen on UDP socket: permission denied
  13. Jul 4 10:00:59 matrix named[55566]: creating IPv4 interface lo0 failed; interface ignored
  14. Jul 4 10:00:59 matrix named[55566]: zone cutechat.org/IN: NS 'ns1.cutechat.org' has no address records (A or AAAA)
  15. Jul 4 10:00:59 matrix named[55566]: zone cutechat.org/IN: NS 'ns2.cutechat.org' has no address records (A or AAAA)
  16. Jul 4 10:00:59 matrix named[55566]: running
  17. Jul 4 10:01:13 matrix named[55498]: stopping command channel on 127.0.0.1#953
  18. Jul 4 10:01:13 matrix named[55566]: exiting
  19. Jul 4 10:01:13 matrix named[55498]: exiting
  20. Jul 4 10:01:31 matrix named[55643]: starting BIND 9.4.3-P2 -t /var/named -u bind
  21. Jul 4 10:01:31 matrix named[55643]: command channel listening on 127.0.0.1#953
  22. 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
  23. Jul 4 10:01:31 matrix named[55643]: the working directory is not writable
  24. Jul 4 10:01:31 matrix named[55643]: zone cutechat.org/IN: NS 'ns1.cutechat.org' has no address records (A or AAAA)
  25. Jul 4 10:01:31 matrix named[55643]: zone cutechat.org/IN: NS 'ns2.cutechat.org' has no address records (A or AAAA)
  26. Jul 4 10:01:31 matrix named[55643]: running
  27. 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
  28. Jul 4 10:01:34 matrix named[55643]: the working directory is not writable
  29. [root@matrix { ~ }] ps aux | grep named
  30. 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
  31. bind 55643 0.0 11.4 267252 233436 ?? Ss 10:01AM 0:00.87 /usr/sbin/named -t /var/named -u bind
  32. root 55661 0.0 0.1 1660 1052 p3 R+ 10:02AM 0:00.00 grep named
  33. [root@matrix { ~ }] /etc/rc.d/named restart
  34. named not running? (check /var/run/named/pid).
  35. Starting named.
  36. [root@matrix { ~ }]
  37.  
  38.  
  39. Thanks!
  40.  
  41. ---------------------------------------
  42. Jeremy Ewing
  43. Systems Administrator
  44. SharkTECH Internet Services
  45.  
  46.  
  47. 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.
  48.  
  49. I have added the following back to the named.conf
  50.  
  51. options {
  52. // Relative to the chroot directory, if any
  53. directory "/etc/namedb";
  54. pid-file "/var/run/named/pid";
  55. dump-file "/var/dump/named_dump.db";
  56. statistics-file "/var/stats/named.stats";
  57. listen-on { 67.21.73.130; 67.21.73.131; };
  58. // listen-on-v6 { ::1; };
  59. disable-empty-zone "255.255.255.255.IN-ADDR.ARPA";
  60. 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";
  61. 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";
  62. // forward only;
  63. /* forwarders {
  64. 127.0.0.1;
  65. };
  66. */
  67. };
  68.  
  69.  
  70. After killing everything for bind, I get the following.
  71.  
  72. [root@matrix { /etc/namedb }] ps aux | grep named
  73. bind 56115 0.0 11.3 269300 232904 ?? Ss 10:09AM 0:00.94 /usr/sbin/named -t /var/named -u bind
  74. root 56278 0.0 0.1 1660 1052 p3 R+ 10:13AM 0:00.00 grep named
  75. [root@matrix { /etc/namedb }] killall -u bind
  76. [root@matrix { /etc/namedb }] ps aux | grep named
  77. root 56282 0.0 0.1 1660 1052 p3 R+ 10:13AM 0:00.00 grep named
  78. [root@matrix { /etc/namedb }] ps aux | grep bind
  79. root 56284 0.0 0.1 1660 1052 p3 R+ 10:13AM 0:00.00 grep bind
  80. [root@matrix { /etc/namedb }] /etc/rc.d/named restart
  81.  
  82. named not running? (check /var/run/named/pid).
  83. Starting named.
  84.  
  85. [root@matrix { /etc/namedb }] /etc/rc.d/named restart
  86. Stopping named.
  87. Waiting for PIDS: 56404.
  88. Starting named.
  89. [root@matrix { /etc/namedb }] /etc/rc.d/named restart
  90. Stopping named.
  91. Waiting for PIDS: 56484.
  92. Starting named.
  93. [root@matrix { /etc/namedb }]
  94.  
  95.  
  96. Thanks!
  97.  
  98. ---------------------------------------
  99. Jeremy Ewing
  100. Systems Administrator
  101. SharkTECH Internet Services
Submit a correction or amendment below. Make A New Post
To highlight particular lines, prefix each line with @h@
Syntax highlighting:
Post expiration:
Post exposure:
Name / Title:
Email: