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