named not start

mjheidari

Verified User
Joined
Jun 29, 2014
Messages
25
Code:
● named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/etc/systemd/system/named.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2021-05-10 05:51:12 EDT; 5s ago
  Process: 19037 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=127)

May 10 05:51:12 localhost.localdomain systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
May 10 05:51:12 localhost.localdomain bash[19037]: /bin/bash: /usr/sbin/named-checkconf: No such file...ory
May 10 05:51:12 localhost.localdomain systemd[1]: named.service: control process exited, code=exited ...127
May 10 05:51:12 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
May 10 05:51:12 localhost.localdomain systemd[1]: Unit named.service entered failed state.
May 10 05:51:12 localhost.localdomain systemd[1]: named.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
[root@localhost ~]# systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/etc/systemd/system/named.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2021-05-10 05:51:12 EDT; 12s ago
  Process: 19037 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=127)

May 10 05:51:12 localhost.localdomain systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
May 10 05:51:12 localhost.localdomain bash[19037]: /bin/bash: /usr/sbin/named-checkconf: No such file or directory
May 10 05:51:12 localhost.localdomain systemd[1]: named.service: control process exited, code=exited status=127
May 10 05:51:12 localhost.localdomain systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
May 10 05:51:12 localhost.localdomain systemd[1]: Unit named.service entered failed state.
May 10 05:51:12 localhost.localdomain systemd[1]: named.service failed.

CentOS 7.0 64-Bit
 
Looks like your /usr/sbin/named-checkconf doesn't exist. It is part of the bind9 package, so you can try to reinstall it:

Code:
yum reinstall bind9
 
Looks like your /usr/sbin/named-checkconf doesn't exist. It is part of the bind9 package, so you can try to reinstall it:

Code:
yum reinstall bind9
Code:
[root@localhost ~]# yum reinstall bind9
Loaded plugins: fastestmirror, langpacks
No Match for argument: bind9
Loading mirror speeds from cached hostfile
epel/x86_64/metalink                                     |  35 kB     00:00
 * base: mirror.imt-systems.com
 * epel: mirror.imt-systems.com
 * extras: mirror.imt-systems.com
 * updates: mirror.softaculous.com
base                                                     | 3.6 kB     00:00
extras                                                   | 2.9 kB     00:00
updates                                                  | 2.9 kB     00:00
updates/7/x86_64/primary_db                                | 8.0 MB   00:00
Error: Nothing to do
 
Back
Top