systemd
状態:
named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/usr/lib/systemd/system/named.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sat 2022-10-08 21:40:00 EDT; 21min ago
Process: 3918 ExecStartPre=/bin/bash -c if [ ! "$DISABLE_ZONE_CHECKING" == "yes" ]; then /usr/sbin/named-checkconf -z /etc/named.conf; else echo "Checking of zone files is disabled";
Oct 08 21:40:00 F24server.nspdom1.local systemd[1]: Starting Berkeley Internet Name Domain (DNS)...
Oct 08 21:40:00 F24server.nspdom1.local bash[3918]: /etc/named.conf:11: missing ';' before '}'
Oct 08 21:40:00 F24server.nspdom1.local systemd[1]: named.service: Control process exited, code=exited status=1
Oct 08 21:40:00 F24server.nspdom1.local systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Oct 08 21:40:00 F24server.nspdom1.local systemd[1]: named.service: Unit entered failed state.
Oct 08 21:40:00 F24server.nspdom1.local systemd[1]: named.service: Failed with result 'exit-code'.
named.conf
文書:
options {
listen-on port 53 { 192.168.100.10; 127.0.0.1; };
listen-on-v6 port 53 { ::1; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { 192.168.100.0/24; localhost; };