Author Topic: Error when starting Bind DNS Server  (Read 3662 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Error when starting Bind DNS Server
« on: November 08, 2021, 02:41:56 AM »
Hi. I have an error when starting DNS Bind Server. Here is the error from log


-- Unit named.service has begun starting up.
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: could not configure root hints from 'named.ca': file not found
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone localhost.localdomain/IN: loading from master file named.localhost failed: file not found
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone localhost.localdomain/IN: not loaded due to errors.
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: _default/localhost.localdomain/IN: file not found
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone localhost/IN: loading from master file named.localhost failed: file not found
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone localhost/IN: not loaded due to errors.
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: _default/localhost/IN: file not found
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loading from master file named.loopback failed: file not found
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: not loaded due to errors.
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: _default/1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: file not found
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone 1.0.0.127.in-addr.arpa/IN: loading from master file named.loopback failed: file not found
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone 1.0.0.127.in-addr.arpa/IN: not loaded due to errors.
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: _default/1.0.0.127.in-addr.arpa/IN: file not found
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone 0.in-addr.arpa/IN: loading from master file named.empty failed: file not found
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone 0.in-addr.arpa/IN: not loaded due to errors.
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: _default/0.in-addr.arpa/IN: file not found
Nov 08 09:37:49 server.rsbmedan.com systemd[1]: named.service: control process exited, code=exited status=1
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone ns1.centos-webpanel.com/IN: loaded serial 2013071600
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone ns2.centos-webpanel.com/IN: loaded serial 2013071600
Nov 08 09:37:49 server.rsbmedan.com bash[8373]: zone server.rsbmedan.com/IN: loaded serial 2021110413
Nov 08 09:37:49 server.rsbmedan.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
-- Subject: Unit named.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit named.service has failed.
--
-- The result is failed.
Nov 08 09:37:49 server.rsbmedan.com systemd[1]: Unit named.service entered failed state.
Nov 08 09:37:49 server.rsbmedan.com systemd[1]: named.service failed.


Anyone know how to fix this?

Thank you.



Offline
***
Re: Error when starting Bind DNS Server
« Reply #1 on: November 13, 2021, 11:19:01 AM »
It looks like the files 'named.ca', 'named.empty', 'named.localhost', 'named.loopback' were removed from the folder:

Code: [Select]
/var/named/
on your CWP server.

If you have some other server running under CentOS with BIND just copy the above files from the working server to your broken CWP server, chmod, chown the files and then try to restart BIND.