bind running,but show "failed" in WHM?

tshin

Active Member
Dec 14, 2004
41
0
156
my bind is 9.2.1
i use restart BIND in WHM,it shows:
Attempting to restart named
Waiting for named to restart.... . . . . . . . . . . finished.

named status


named has failed, please contact the sysadmin (result was "named is not running").
Jan 31 04:45:12 host named[24429]: shutting down
Jan 31 04:45:12 host named[24429]: stopping command channel on 127.0.0.1#953
Jan 31 04:45:12 host named[24429]: no longer listening on 127.0.0.1#53
Jan 31 04:45:12 host named[24429]: no longer listening on xxx.xxx.xxx.xxx#53
Jan 31 04:45:12 host named[24429]: exiting
Jan 31 04:45:12 host named: named shutdown succeeded
Jan 31 04:45:12 host named[24502]: starting BIND 9.2.1
Jan 31 04:45:12 host named[24502]: using 4 CPUs
Jan 31 04:45:12 host named[24502]: loading configuration from '/etc/named.conf'
Jan 31 04:45:12 host named[24502]: no IPv6 interfaces found
Jan 31 04:45:12 host named[24502]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 31 04:45:12 host named[24502]: listening on IPv4 interface eth1, xxx.xxx.xxx.xxx#53
Jan 31 04:45:12 host named[24502]: command channel listening on 127.0.0.1#953
Jan 31 04:45:12 host named[24502]: zone localhost.localdomain/IN: loaded serial 2005012901
Jan 31 04:45:12 host named[24502]: running
Jan 31 04:45:13 host named: named startup succeeded

==============
it shows "failed"
then,through ssh,type "rndc status"
it shows:

number of zones: 4
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
server is up and running

=============
looks fine.

can any one help me?
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
The service that checks services runs approx every 9 minutes. If you restart it from ssh it should show the correct status: service chkservd restart
 

tshin

Active Member
Dec 14, 2004
41
0
156
thanks.

but i restarted it though WHM.
WHM can restart bind,but shows failed.
 

haze

Well-Known Member
Dec 21, 2001
1,540
3
318
Nm.. im jetlagged :P
 
Last edited:

tshin

Active Member
Dec 14, 2004
41
0
156
RHEL AS3

ps aux | grep named

root 9797 0.0 0.1 66856 2560 ? S 13:10 0:00 named
root 9840 0.0 0.0 4928 696 pts/0 S 13:18 0:00 grep named


yes i can query the name server.

thank you.
 

BenThomas

Well-Known Member
Feb 12, 2004
598
0
166
Houston, Texas USA
cPanel Access Level
Root Administrator
The following command should return the ps output for the named process:

/scripts/restartsrv_named --status

For some unknown reason it is not on your system (correct me if I'm wrong). Please submit a support ticket to use to my attention (Ben).

Thanks
 

bikersraw

Active Member
Feb 16, 2004
27
0
151
your problem is because named is running as root

you need to run named -u named.... forget where the config file is though to edit the named command line
 

BenThomas

Well-Known Member
Feb 12, 2004
598
0
166
Houston, Texas USA
cPanel Access Level
Root Administrator
bikersraw said:
your problem is because named is running as root

you need to run named -u named.... forget where the config file is though to edit the named command line
Thanks, I didn't see that (though I was looking directly at it). :)

Please run /usr/sbin/named-checkconf. That should give you an idea of where the problem lies.
 

TKlaver

Member
Jan 29, 2004
19
0
151
Same problem here:

[[email protected]] ~# /scripts/restartsrv_named --status
[[email protected]] ~# /usr/sbin/named-checkconf
[[email protected]] ~#
named has failed, please contact the sysadmin (result was "named is not running"). Feb 15 18:28:43 server23 named[54543]: stopping command channel on 127.0.0.1#953 Feb 15 18:28:43 server23 named[54543]: exiting Feb 15 18:28:44 server23 named[55058]: starting BIND 9.3.0 -u bind -c /etc/namedb/named.conf Feb 15 18:28:44 server23 named[55058]: command channel listening on 127.0.0.1#953
I tried the -u named flag as well. Same result.

Any ideas?
 

TKlaver

Member
Jan 29, 2004
19
0
151
Yes, it is. As said in some replies above I tried changing it to -u named also but that didnt make a difference.
 

easyhoster1

Well-Known Member
Sep 25, 2003
656
0
166
Does the named.pid file exist? Paste the options part of your named.conf file here and when your restart Bind, what comes up in /var/log/messages?
 

TKlaver

Member
Jan 29, 2004
19
0
151
[[email protected]] ~# ls -l /var/run/named/pid
-rw-r--r-- 1 named named 6 Feb 16 10:36 /var/run/named/pid
options {
directory "/etc/namedb";
pid-file "/var/run/named/pid";
};

Feb 16 10:36:40 server23 named[50616]: stopping command channel on 127.0.0.1#953
Feb 16 10:36:40 server23 named[50616]: exiting
Feb 16 10:36:40 server23 named[51499]: starting BIND 9.3.0 -u bind -c /etc/namedb/named.conf
Feb 16 10:36:40 server23 named[51499]: command channel listening on 127.0.0.1#953
It's restarting every X minutes.
 
Last edited:

easyhoster1

Well-Known Member
Sep 25, 2003
656
0
166
Top into your machine and see if Bind is starting up as username bind. Sounds like it's coming up as username named, should be Bind. If so, you may want to reinstall Bind to see if it fixes the problem.
 
Last edited:

easyhoster1

Well-Known Member
Sep 25, 2003
656
0
166
-rw-r--r-- 1 named named 6 Feb 16 10:36 /var/run/named/pid
Try changing ownership on the bind directory and make sure the named.pid file has

Should be -rw-r--r-- 1 53 bind 6 Feb 16 10:36 /var/run/named/pid

Our servers have

/var/run/bind/pid

If you have the Bind directory, make sure your path in the options section of your named.conf matches.
 
Last edited: