Solved named.service 2>&1

Develop

Verified User
Joined
Jun 9, 2016
Messages
158
Location
Istanbul, TR
Hello all,

After restoring the backup on the new server. I got an error on the service monitor after restarting the name service: /usr/bin/systemctl restart named.service 2>&1
How to fix it? Is it possible to check what's wrong step by step?

Best regards.
 
Hello Richard, I hope everything is okay with you.

Here is result:

● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/etc/systemd/system/named.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2022-01-27 14:06:06 +03; 97ms ago
Process: 123802 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)

Jan 27 14:06:06 bash[123802]: zone localhost/IN: loaded serial 0
Jan 27 14:06:06 bash[123802]: 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: loaded serial 0
Jan 27 14:06:06 bash[123802]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
Jan 27 14:06:06 bash[123802]: zone 0.in-addr.arpa/IN: loaded serial 0
Jan 27 14:06:06 bash[123802]: zone 1236.server/IN: loading from master file /var/named/1236.server.db failed: file not found
Jan 27 14:06:06 bash[123802]: zone 1236.server/IN: not loaded due to errors.
Jan 27 14:06:06 bash[123802]: _default/1236.server/IN: file not found
Jan 27 14:06:06 systemd[1]: named.service: Control process exited, code=exited status=1
Jan 27 14:06:06 systemd[1]: named.service: Failed with result 'exit-code'.
Jan 27 14:06:06 systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
 
Hello Richard, I hope everything is okay with you.
Hello Develop. I'm fine thank you, I hope you too.

I see Active8 already helped you, nice it's fixed again now!

Indeed should be looked at, as the hostname domain is created by default and is usable, so odd this error is now happening.
 
How to do it? :)
 
Back
Top