![BIND DNS 服务器未启动](https://linux22.com/image/734594/BIND%20DNS%20%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%9C%AA%E5%90%AF%E5%8A%A8.png)
BIND DNS 服务器无法正常工作。当我启动它时,出现以下错误。
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 Tue 2019-03-05 17:20:22 UTC; 9s ago
Process: 3897 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)
Mar 05 17:20:22 templatemaza bash[3897]: _default/gc-ns2.templatemaza.com/IN: file not found
Mar 05 17:20:22 templatemaza bash[3897]: zone templatemaza.com/IN: loaded serial 2018071600
Mar 05 17:20:22 templatemaza bash[3897]: zone ns3.templatemaza.com/IN: loaded serial 2013071600
Mar 05 17:20:22 templatemaza bash[3897]: zone ns4.templatemaza.com/IN: loaded serial 2013071600
Mar 05 17:20:22 templatemaza bash[3897]: zone ns1.templatemaza.com/IN: loaded serial 2013071600
Mar 05 17:20:22 templatemaza bash[3897]: zone ns2.templatemaza.com/IN: loaded serial 2013071600
Mar 05 17:20:22 templatemaza systemd[1]: named.service: control process exited, code=exited status=1
Mar 05 17:20:22 templatemaza systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Mar 05 17:20:22 templatemaza systemd[1]: Unit named.service entered failed state.
Mar 05 17:20:22 templatemaza systemd[1]: named.service failed.
请帮我解决这个问题。如果您需要更多详细信息,请告诉我
答案1
问题已修复。我已从文件中删除无效域etc/named.conf
并重新启动 Bind DNS 服务器。现在它已正常运行