named stopped working

kikloo

Verified User
Joined
Jul 17, 2019
Messages
71
Hi,

After changing IP of hostname and nameservers, I restarted my server and since then named has stopped working:

---
An error has occurred

/usr/bin/systemctl start named.service 2>&1
---

When I try to restart, I get following:

---
service named restart
Redirecting to /bin/systemctl restart named.service
Job for named.service failed because the control process exited with error code. See "systemctl status named.service" and "journalctl -xe" for details.
---

when I try to get status I get the following:

----
service named status
Redirecting to /bin/systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/etc/systemd/system/named.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-10-18 14:05:06 CEST; 16s ago
Process: 3078 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)

Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone x4.clickban.ir/IN: loaded serial 2019101700
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone avissoft.com/IN: loaded serial 2019101700
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone tapanbhanot.com/IN: loaded serial 2019101700
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone arditafashioners.com/IN: loaded serial 2019101800
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone rsl1.reseller-hosting.in/IN: loading from master file /var/named/rsl1.reseller-hosting.in.db faile...not found
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone rsl1.reseller-hosting.in/IN: not loaded due to errors.
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: _default/rsl1.reseller-hosting.in/IN: file not found
Oct 18 14:05:06 rsl1.reseller-hosting.in systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Oct 18 14:05:06 rsl1.reseller-hosting.in systemd[1]: Unit named.service entered failed state.
Oct 18 14:05:06 rsl1.reseller-hosting.in systemd[1]: named.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
---

What is wrong with this ?

I am on Centos 7.

Thanks.
 
----
service named status
Redirecting to /bin/systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/etc/systemd/system/named.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-10-18 14:05:06 CEST; 16s ago
Process: 3078 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)

Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone x4.clickban.ir/IN: loaded serial 2019101700
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone avissoft.com/IN: loaded serial 2019101700
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone tapanbhanot.com/IN: loaded serial 2019101700
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone arditafashioners.com/IN: loaded serial 2019101800
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone rsl1.reseller-hosting.in/IN: loading from master file /var/named/rsl1.reseller-hosting.in.db faile...not found
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: zone rsl1.reseller-hosting.in/IN: not loaded due to errors.
Oct 18 14:05:06 rsl1.reseller-hosting.in bash[3078]: _default/rsl1.reseller-hosting.in/IN: file not found
Oct 18 14:05:06 rsl1.reseller-hosting.in systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
Oct 18 14:05:06 rsl1.reseller-hosting.in systemd[1]: Unit named.service entered failed state.
Oct 18 14:05:06 rsl1.reseller-hosting.in systemd[1]: named.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
---

What is wrong with this ?

I am on Centos 7.

Thanks.

named_checkzone checks the zone files for errors and fails to start named if errors are found. These are governed in DA by these settings:
named_checkzone=1
named_checkzone_level=fail

Leave these as is (for the most part*). The problem is the ns1 and ns2 files. Notice where is states that they were not loaded due to errors?

Fix these zones and named should start then.

You can use the following command to find out what the exact error is:

Code:
/usr/sbin/named-checkzone rsl1.reseller-hosting.in /var/named/rsl1.reseller-hosting.in.db

*Also, if you'd like named to start despite failure to load a zone but still issue a warning, set the checkzone level to warn:

Code:
 /usr/local/directadmin/directadmin set named_checkzone_level warn restart


It wouldn't much matter with nameserver zone files if those are the nameservers for your other domains, but it may be helpful in the future to allow other domains to load when only one unrelated domain has an error.
 
Last edited:
I have the same problem. Named stopped working and cant get it back to work. It does not start.
I executed the command above to find out the exact errors.
Code:
/usr/sbin/named-checkzone rsl1.reseller-hosting.in /var/named/rsl1.reseller-hosting.in.db

However I don't know what to do next?

This are my errors:

Redirecting to /bin/systemctl status named.service
named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/etc/systemd/system/named.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2022-01-23 13:17:01 CET; 1s ago
Process: 19674 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 23 13:17:01 vps10.nameofserver.nl bash[19674]: zone nameofsitea.de/IN: ...
Jan 23 13:17:01 vps10.nameofserver.nl bash[19674]: zone nameofsiteb.fr/I...
Jan 23 13:17:01 vps10.nameofserver.nl bash[19674]: zone nameofsitec.com/IN:...
Jan 23 13:17:01 vps10.nameofserver.nl bash[19674]: zone nameofsited.n...
Jan 23 13:17:01 vps10.nameofserver.nl bash[19674]: zone nameofsitee.nl/IN: loade...
Jan 23 13:17:01 vps10.nameofserver.nl bash[19674]: zone nameofsitef...
Jan 23 13:17:01 vps10.nameofserver.nl systemd[1]: named.service: control p...
Jan 23 13:17:01 vps10.nameofserver.nl systemd[1]: Failed to start Berkeley...
Jan 23 13:17:01 vps10.nameofserver.nl systemd[1]: Unit named.service enter...
Jan 23 13:17:01 vps10.nameofserver.nl systemd[1]: named.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

What could I do? anyone an idea how I can fix this and start named again?
(CentOS7)
 
@stof Try this as it worked for me:

 
Back
Top