etc/named.conf Not Found Problem

fairblack

Registered
Apr 8, 2008
1
0
51
I was install Centos 5 And cpanel. But i have got a dns problem on this machine. Named is not working and broken. I cant add any nameserver or new domain or new zone via my WHM.

I got that error when restarting the DNS Server.
--------------
Waiting for named to restart.... . . . . . . . . . . finished.

named status

named has failed, please contact the sysadmin (result was "named is not running"). Apr 8 15:03:53 server465 named: none:0: open: /etc/named.conf: file not found
---------------

What can i do?

Thanks
 

Avi-Buda

Registered
Dec 25, 2005
1
0
151
Got same error. Here's the output you were curious about:
-=-=-=-=-=-=-=-=-
[email protected] [~]# rpm -qa | grep bind
bind-libs-9.3.4-6.0.1.P1.el5_2
bind-9.3.4-6.0.1.P1.el5_2
bind-devel-9.3.4-6.0.1.P1.el5_2
ypbind-1.19-8.el5
bind-utils-9.3.4-6.0.1.P1.el5_2
-=-=-=-=-=-=-=-=-
Now what? :)
 

rustelekom

Well-Known Member
PartnerNOC
Nov 13, 2003
290
0
166
moscow
you need rebuild /etc/named.conf from WHM. or if you are on new server just create it manually.
 

myweb

Well-Known Member
Jun 18, 2002
71
0
156
Tokyo
I am also having the same problem. The file /etc/named.conf does exist, but with root as owner/group. I tried to chown named:named /etc/named.conf, but it doesnt take any effect, so it remains as root/root. Any idea?