Mini

Well-Known Member
Mar 4, 2005
98
0
156
Hi all,

I accidently ran "Nameserver Setup" in WHM and my named is broken. How would I fix it?

[email protected] [/etc]# /etc/init.d/named restart
Stopping named: [ OK ]
Starting named:
Error in named configuration:
none:0: open: /etc/named.conf: file not found
[FAILED]

And, the named.conf file DOES exist, so I don't know why it's doing this.

If anyone could help me that that'd be great.

Thanks

[email protected] [/etc]# /scripts/restartsrv named
Waiting for named to restart..............finished.


named has failed, please contact the sysadmin (result was "named is not running").
Oct 2 12:15:16 host named: none:0: open: /etc/named.conf: file not found
 

Mini

Well-Known Member
Mar 4, 2005
98
0
156
Also he's a log if it helps.

Thanks if you can help me, I'm pretty desperate :(

[email protected] [/etc]# tail /var/log/messages
Oct 2 12:09:40 host named: none:0: open: /etc/named.conf: file not found
Oct 2 12:14:13 host named: none:0: open: /etc/named.conf: file not found
Oct 2 12:15:16 host named: none:0: open: /etc/named.conf: file not found
Oct 2 12:17:32 host pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
Oct 2 12:17:32 host pure-ftpd: ([email protected]) [INFO] Logout.
Oct 2 12:17:33 host named: none:0: open: /etc/named.conf: file not found
Oct 2 12:20:15 host named: none:0: open: /etc/named.conf: file not found
Oct 2 12:25:55 host pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
Oct 2 12:25:55 host pure-ftpd: ([email protected]) [INFO] Logout.
Oct 2 12:25:56 host named: none:0: open: /etc/named.conf: file not found
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
Also he's a log if it helps.

Thanks if you can help me, I'm pretty desperate :(

[email protected] [/etc]# tail /var/log/messages
Oct 2 12:09:40 host named: none:0: open: /etc/named.conf: file not found
Oct 2 12:14:13 host named: none:0: open: /etc/named.conf: file not found
Oct 2 12:15:16 host named: none:0: open: /etc/named.conf: file not found
Oct 2 12:17:32 host pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
Oct 2 12:17:32 host pure-ftpd: ([email protected]) [INFO] Logout.
Oct 2 12:17:33 host named: none:0: open: /etc/named.conf: file not found
Oct 2 12:20:15 host named: none:0: open: /etc/named.conf: file not found
Oct 2 12:25:55 host pure-ftpd: ([email protected]) [INFO] New connection from 127.0.0.1
Oct 2 12:25:55 host pure-ftpd: ([email protected]) [INFO] Logout.
Oct 2 12:25:56 host named: none:0: open: /etc/named.conf: file not found
Try

/scripts/rebuildnamedconf

if that doesn't work

Try

/scripts/rebuildnamedconf --force

if that doesn't work, please open a support request.
 

Humayun

Member
Jul 15, 2008
21
0
51
Yaseen

Hello :),

Please do this to resolve this issue
------------------
--> cp -r /etc/named.conf /etc/named.conf.bk
--> rm -rf /etc/named.conf
--> /scripts/rebuildnamed --force
--> service named restart
------------------
Issue should be fixed then.

Regards:D,




Try

/scripts/rebuildnamedconf

if that doesn't work

Try

/scripts/rebuildnamedconf --force

if that doesn't work, please open a support request.