error in named.service failed

General support questions
Post Reply
theseagull
Posts: 1
Joined: 2022/09/13 07:18:48

error in named.service failed

Post by theseagull » 2022/09/13 07:46:53

i was following this guide to bind dns server
https://www.unixmen.com/dns-server-setu ... s-7-linux/
but i got this error
https://envs.sh/QZ5.jpeg

scottro
Forum Moderator
Posts: 2556
Joined: 2007/09/03 21:18:09
Location: NYC
Contact:

Re: error in named.service failed

Post by scottro » 2022/09/13 12:15:05

I don't have the answer to your question, but firstly, it helps if you mention that you're using WSL on Windows, at least I assume so from the screen shot.
Secondly, since you are doing it in Winows, you're much better off copying and pasting the error. Many people on this list are quite busy and won't bother going to a screenshot, whereas, if you had text in the post, they would be more likely to look.

That will probably get you more (and helpful) answers, than the screenshot does.
New users should check the FAQ and Read Me First pages

User avatar
jlehtone
Posts: 4531
Joined: 2007/12/11 08:17:33
Location: Finland

Re: error in named.service failed

Post by jlehtone » 2022/09/14 07:37:24

BIND 9 has probably very fine features but I have found dnsmasq to be much simpler to set up, yet sufficient for humble needs.
So, do you need a DNS server, or do you need the BIND?

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: error in named.service failed

Post by Whoever » 2022/09/15 05:26:55

theseagull wrote:
2022/09/13 07:46:53
i was following this guide to bind dns server
https://www.unixmen.com/dns-server-setu ... s-7-linux/
but i got this error
https://envs.sh/QZ5.jpeg
I have rarely found the information from the journalctl and systemctl commands useful when dealing with this type of issue. I suspect that if you run:

Code: Select all

grep named /var/log/messages
you may find the information there more informative.

User avatar
jlehtone
Posts: 4531
Joined: 2007/12/11 08:17:33
Location: Finland

Re: error in named.service failed

Post by jlehtone » 2022/09/15 06:45:27

Whoever wrote:
2022/09/15 05:26:55
I have rarely found the information from the journalctl and systemctl commands useful when dealing with this type of issue.
That ought to be about formatting and filtering. Those commands get data from systemd-journal.service. The rsyslog.service, which writes files like the /var/log/messages, seems to get data from systemd-journal.service too.

Some services do not use these facilities (for everything), but write logs to their own log files directly. For example, httpd and samba. For those cases one really has to "go to files".

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: error in named.service failed

Post by TrevorH » 2022/09/15 08:42:36

This appears to be running on Windows so I am not sure that /var/log/messages will exist. I'm also not sure we support this as there is no official CentOS support in WSL.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Whoever
Posts: 1361
Joined: 2013/09/06 03:12:10

Re: error in named.service failed

Post by Whoever » 2022/09/15 20:52:51

jlehtone wrote:
2022/09/15 06:45:27
Whoever wrote:
2022/09/15 05:26:55
I have rarely found the information from the journalctl and systemctl commands useful when dealing with this type of issue.
That ought to be about formatting and filtering. Those commands get data from systemd-journal.service. The rsyslog.service, which writes files like the /var/log/messages, seems to get data from systemd-journal.service too.
Maybe there is some way to get the data in a well formatted fashion, with all the lines I need from the systemd commands, but why? grep on the files in /var/log works well and gives me everything I need. Perhaps the developers of systemd chose some poor defaults for the commands; I don't see why I should work around their bad choices when I have an alternative.

Post Reply