Page 1 of 2

Error: named restart failed

Posted: Mon Aug 25, 2014 2:25 am
by Raptor
Hello everybody, so i was editing the my domain to add ssl and when i tried to save i got this error
Error: named restart failed
Idk whats causing this so i went to ssh and tried to restart named and i got this:

Code: Select all

[xxxxxxxxxxxx]# service named restart
Stopping named:                                            [  OK  ]
Starting named:
Error in named configuration:
zone mydomain.org/IN: loading from master file /home/admin/conf/dns/mydomain.org.db failed: file not found
zone mydomain.org/IN: not loaded due to errors.
_default/mydomain.org/IN: file not found
Any idea whats this all about?
Thanks in advance.

Re: Error: named restart failed

Posted: Mon Aug 25, 2014 3:44 pm
by Kyon
Hello Raptor,

Can you try this please :
v-rebuild-dns-domain admin mydomain.org
and try again ?

Moreover, can you check the /var/log/vesta/* logs files after that.

Re: Error: named restart failed

Posted: Tue Aug 26, 2014 10:57 pm
by Raptor
Kyon wrote:Hello Raptor,

Can you try this please :
v-rebuild-dns-domain admin mydomain.org
and try again ?

Moreover, can you check the /var/log/vesta/* logs files after that.
saying command not found, and in the error log i saw this

Code: Select all

2014-08-27 00:36:44 v-list-dns-domain admin www.mydomain.org json       [Error 3]

Re: Error: named restart failed

Posted: Thu Aug 28, 2014 9:42 pm
by imperio
Hello,
show me please result of this command

Code: Select all

service named configtest

Re: Error: named restart failed

Posted: Thu Sep 11, 2014 1:34 pm
by !!!
I have problem is not resolved

zone mydomain.net/IN: loading from master file /home/admin/conf/dns/mydomain.net.db failed: file not found zone mydomain.net/IN: not loaded due to errors.
_default/mydomain.net/IN: file not found

This error when send command

Code: Select all

service named configtest
CentOS x86 v6

Re: Error: named restart failed

Posted: Mon Mar 28, 2016 8:14 pm
by hnoor0055
Thinks for everything



== merry christmas gif=
==

Re: Error: named restart failed

Posted: Tue Mar 29, 2016 2:37 pm
by skurudo
!!! wrote:I have problem is not resolved
Rebuild DNS first.

Image

Re: Error: named restart failed

Posted: Wed Jul 06, 2016 12:59 pm
by hiolips
i have the same problem, any suggestion from this topic don't help me, can you look at my topic on the forum:
viewtopic.php?f=30&t=12001

Re: Error: named restart failed

Posted: Fri Jul 29, 2016 9:24 am
by dards
Hi, I'm having the same problem but I just found the solution
NOTE: I am using CentOs 6.10 , please check your OS before using the solution below.


check how many bind* are installed on your server
yum list installed bind*

Installed Packages
bind.x86_64 32:9.8.2-0.47.rc1.el6 @base
bind-chroot.x86_64 32:9.8.2-0.47.rc1.el6 @base
bind-libs.x86_64 32:9.8.2-0.47.rc1.el6 @base
bind-utils.x86_64 32:9.8.2-0.47.rc1.el6 @base

if you see bind-chroot then this cause problem
yum remove bind-chroot

restart the named
service named restart

Re: Error: named restart failed

Posted: Tue Jul 31, 2018 4:54 pm
by amaulanas
dards wrote:
Fri Jul 29, 2016 9:24 am
Hi, I'm having the same problem but I just found the solution

check how many bind* are installed on your server
yum list installed bind*

Installed Packages
bind.x86_64 32:9.8.2-0.47.rc1.el6 @base
bind-chroot.x86_64 32:9.8.2-0.47.rc1.el6 @base
bind-libs.x86_64 32:9.8.2-0.47.rc1.el6 @base
bind-utils.x86_64 32:9.8.2-0.47.rc1.el6 @base

if you see bind-chroot then this cause problem
yum remove bind-chroot

restart the named
service named restart
I don't see bin-chroot
named still failed to start

Update : Just share when you got the same error with me and still not start with above solution
It maybe different log error on me, but I solve when I detect there are 2 record duplicated on "www" with A and CNAME

Here my error failed start with "service named status -l"
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2018-08-01 00:00:06 WIB; 3min 17s ago
Process: 2763 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z "$NAMEDCONF"; else echo "Checking of zone files is disabled"; fi (code=exited, status=1/FAILURE)

Aug 01 00:00:06 reducerealm systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
Aug 01 00:00:06 reducerealm bash[2763]: dns_master_load: /home/admin/conf/dns/mysubdomain.domain.com.db:23: www.mysubdomain.domain.com: CNAME and other data
Aug 01 00:00:06 reducerealm bash[2763]: zone mysubdomain.domain.com/IN: loading from master file /home/admin/conf/dns/mysubdomain.domain.com.db failed: CNAME and other data
Aug 01 00:00:06 reducerealm bash[2763]: zone mysubdomain.domain.com/IN: not loaded due to errors.
Aug 01 00:00:06 reducerealm bash[2763]: _default/mysubdomain.domain.com/IN: CNAME and other data
Aug 01 00:00:06 reducerealm systemd[1]: named.service: control process exited, code=exited status=1
Aug 01 00:00:06 reducerealm systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Aug 01 00:00:06 reducerealm systemd[1]: Unit named.service entered failed state.
Aug 01 00:00:06 reducerealm systemd[1]: named.service failed.