Issues related to applications and software problems
-
BlackMage
- Posts: 7
- Joined: 2019/10/29 18:49:35
Post
by BlackMage » 2022/05/03 09:33:06
how i configure on CentOS the bind9 DNS Server? systemd just says on start from bind9: "Failed to start Berkeley Internet Name Domain (DNS)". Where are stored the logs?
on start try it outputs only:
Code: Select all
Redirecting to /bin/systemctl status  named.service
Unit \xc2.service could not be 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 Tue 2022-05-03 04:39:43 EDT; 1h 1min ago
Process: 4896 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
Process: 1692 ExecStart=/usr/sbin/named -u named -c ${NAMEDCONF} $OPTIONS (code=exited, status=0/SUCCESS)
Process: 5105 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: 1693 (code=exited, status=0/SUCCESS)
May 03 04:39:43 vps.domain.com bash[5105]: zone localhost.localdomain/IN: loaded serial 0
May 03 04:39:43 vps.domain.com bash[5105]: zone localhost/IN: loaded serial 0
May 03 04:39:43 vps.domain.com bash[5105]: 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
May 03 04:39:43 vps.domain.com bash[5105]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
May 03 04:39:43 vps.domain.com bash[5105]: zone 0.in-addr.arpa/IN: loaded serial 0
May 03 04:39:43 vps.domain.com systemd[1]: named.service: control process exited, code=exited status=1
May 03 04:39:43 vps.domain.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
May 03 04:39:43 vps.domain.com systemd[1]: Unit named.service entered failed state.
May 03 04:39:43 vps.domain.com systemd[1]: named.service failed.
May 03 04:53:02 vps.domain.com systemd[1]: Unit named.service cannot be reloaded because it is inactive.
my server OS: CentOS 7.9.2009 (Core)
-
jlehtone
- Posts: 4530
- Joined: 2007/12/11 08:17:33
- Location: Finland
Post
by jlehtone » 2022/05/03 13:18:37
Does it have to be bind9? The 'dnsmasq' is, IME, easier to set up.
For logs, look at journalctl -xeu named.service and files under /var/log/
-
BlackMage
- Posts: 7
- Joined: 2019/10/29 18:49:35
Post
by BlackMage » 2022/05/03 16:07:21
yes it should already be the bind9. can't it be that difficult to set up?
journalctl -xeu named.service
gives
Code: Select all
May 03 04:39:43 vps.blackmage.info bash[5105]: zone domain.info/IN: loading from master file fwd.domain.info.db failed: file not found
May 03 04:39:43 vps.blackmage.info bash[5105]: zone domain.info/IN: not loaded due to errors.
May 03 04:39:43 vps.blackmage.info bash[5105]: _default/domain.info/IN: file not found
May 03 04:39:43 vps.blackmage.info bash[5105]: zone localhost.localdomain/IN: loaded serial 0
May 03 04:39:43 vps.blackmage.info bash[5105]: zone localhost/IN: loaded serial 0
May 03 04:39:43 vps.blackmage.info bash[5105]: 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
May 03 04:39:43 vps.blackmage.info bash[5105]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
May 03 04:39:43 vps.blackmage.info bash[5105]: zone 0.in-addr.arpa/IN: loaded serial 0
May 03 04:39:43 vps.blackmage.info systemd[1]: named.service: control process exited, code=exited status=1
May 03 04:39:43 vps.blackmage.info systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
The problem with bind9 is that the log doesn't tell me anything that helps me.
my server OS: CentOS 7.9.2009 (Core)
-
TrevorH
- Site Admin
- Posts: 33219
- Joined: 2009/09/24 10:40:56
- Location: Brighton, UK
Post
by TrevorH » 2022/05/03 16:44:54
The problem with bind9 is that the log doesn't tell me anything that helps me.
May 03 04:39:43 vps.blackmage.info bash[5105]: zone domain.info/IN: loading from master file fwd.domain.info.db failed: file not found
Apart from that...
-
BlackMage
- Posts: 7
- Joined: 2019/10/29 18:49:35
Post
by BlackMage » 2022/05/03 18:25:24
i know that centos 7.9-2009 supported until 30Jun2024, but i plan upgrade CentOS7.9 to CentOS8{i know that support is until 31. Dez. 2021, but only for the upgrade path), and then to RockyLinux8.5(supported until May 2029)
but first I want to get my DNS server working, okay?
my server OS: CentOS 7.9.2009 (Core)
-
jlehtone
- Posts: 4530
- Joined: 2007/12/11 08:17:33
- Location: Finland
Post
by jlehtone » 2022/05/03 19:24:10
BlackMage wrote: ↑2022/05/03 18:25:24
i plan upgrade CentOS7.9 to CentOS8 and then to RockyLinux8.5
Why won't you upgrade directly from CentOS 7 to Rocky 8?
-
Whoever
- Posts: 1361
- Joined: 2013/09/06 03:12:10
Post
by Whoever » 2022/05/03 20:54:11
BlackMage wrote: ↑2022/05/03 18:25:24
but first I want to get my DNS server working, okay?
Then look at Trevor's post and fix the problem causing the error message he highlighted.
-
tunk
- Posts: 1206
- Joined: 2017/02/22 15:08:17
Post
by tunk » 2022/05/03 21:54:48
BlackMage wrote: ↑2022/05/03 18:25:24
but i plan upgrade CentOS7.9 to CentOS8
I'm sure you already know there's no upgrade path from one major version to another - it's a complete reinstall.
-
tunk
- Posts: 1206
- Joined: 2017/02/22 15:08:17
Post
by tunk » 2022/05/03 22:17:00
From the link: "should not be applied to a production server yet."
And if you read the comments you'll see many people have problems.
Your choice of course, but I think everyone here will advice you not
to follow this "tutorial".