每次我检查绑定状态时都会出现此信息。有什么想法吗?
Mar 17 01:03:19 node070 bash[15777]: _default/uzbekistan.jhasb006.cts4348.fiu.edu/IN: file not found
Mar 17 01:03:19 node070 bash[15777]: zone venezuela.jhasb006.cts4348.fiu.edu/IN: loading from master file /etc/named/Zone/venezuela.jhasb006.cts4348.fiu.edu failed: file not found
Mar 17 01:03:19 node070 bash[15777]: zone venezuela.jhasb006.cts4348.fiu.edu/IN: not loaded due to errors.
Mar 17 01:03:19 node070 bash[15777]: _default/venezuela.jhasb006.cts4348.fiu.edu/IN: file not found
Mar 17 01:03:19 node070 bash[15777]: zone vietnam.jhasb006.cts4348.fiu.edu/IN: loading from master file /etc/named/Zone/vietnam.jhasb006.cts4348.fiu.edu failed: file not found
Mar 17 01:03:19 node070 bash[15777]: zone vietnam.jhasb006.cts4348.fiu.edu/IN: not loaded due to errors.
Mar 17 01:03:19 node070 bash[15777]: _default/vietnam.jhasb006.cts4348.fiu.edu/IN: file not found
Mar 17 01:03:19 node070 bash[15777]: zone zambia.jhasb006.cts4348.fiu.edu/IN: loading from master file /etc/named/Zone/zambia.jhasb006.cts4348.fiu.edu failed: file not found
Mar 17 01:03:19 node070 bash[15777]: zone zambia.jhasb006.cts4348.fiu.edu/IN: not loaded due to errors.
Mar 17 01:03:19 node070 bash[15777]: _default/zambia.jhasb006.cts4348.fiu.edu/IN: file not found
编辑:现在我明白了
● 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 2021-03-17 01:47:27 EDT; 2s ago
Process: 15735 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 11677 ExecReload=/bin/sh -c /usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
Process: 13442 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)
Process: 16047 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)
Main PID: 13445 (code=exited, status=0/SUCCESS)
Mar 17 01:47:27 node070 bash[16047]: zone
united_states.jhasb006.cts4348.fiu.edu/IN: loaded serial 3456789
Mar 17 01:47:27 node070 bash[16047]: zone uruguay.jhasb006.cts4348.fiu.edu/IN: loaded serial 3456789
Mar 17 01:47:27 node070 bash[16047]: zone uzbekistan.jhasb006.cts4348.fiu.edu/IN: loaded serial 3456789
Mar 17 01:47:27 node070 bash[16047]: zone venezuela.jhasb006.cts4348.fiu.edu/IN: loaded serial 3456789
Mar 17 01:47:27 node070 bash[16047]: zone vietnam.jhasb006.cts4348.fiu.edu/IN: loaded serial 3456789
Mar 17 01:47:27 node070 bash[16047]: zone zambia.jhasb006.cts4348.fiu.edu/IN: loaded serial 3456789
Mar 17 01:47:27 node070 systemd[1]: named.service: control process exited, code=exited status=1
Mar 17 01:47:27 node070 systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Mar 17 01:47:27 node070 systemd[1]: Unit named.service entered failed state.
Mar 17 01:47:27 node070 systemd[1]: named.service failed.
答案1
您的named
配置,通常/etc/named.conf
(参见systemctl show -p Environment named.service
)存在错误,named-checkconf
返回代码失败1。
看https://src.fedoraproject.org/rpms/bind/blob/rawhide/f/named.service
运行named-checkconf <conf>
并解决问题。