Score:1

Brand new 22.04 LTS installation Named fails on startup

sm flag

Installed 22.04 LTS and all went smoothly. I'm not a Linux expert but followed directions on installing services by LinuxTechi.

Bind9/Named refuses to start and I get the following error. I have no idea what's causing it or how to fix it. If someone can point me in the right direction, I'm willing to do the research and reading.

--------------------ERROR-----------------

 named.service - BIND Domain Name Server
     Loaded: loaded (/lib/systemd/system/named.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Fri 2023-07-07 17:44:37 UTC; 46s ago
       Docs: man:named(8)

    Process: 3922821 ExecStart=/usr/sbin/named $OPTIONS (code=exited, status=1/FAILURE)
        CPU: 25ms

Jul 07 17:44:37 cazserver systemd[1]: named.service: Scheduled restart job, restart counter is at 5.
Jul 07 17:44:37 cazserver systemd[1]: Stopped BIND Domain Name Server.
Jul 07 17:44:37 cazserver systemd[1]: named.service: Start request repeated too quickly.
Jul 07 17:44:37 cazserver systemd[1]: named.service: Failed with result 'exit-code'.
Jul 07 17:44:37 cazserver systemd[1]: Failed to start BIND Domain Name Server.

--------------------END ERROR-------------------

MattCaz avatar
sm flag
Followed these directions but used my domain.local in place of theirs. https://www.linuxtechi.com/install-configure-bind-9-dns-server-ubuntu-debian/
Talaat Etman avatar
gt flag
https://ubuntu.com/server/docs/service-domain-name-service-dns
MattCaz avatar
sm flag
Thank you so much.. removed what I had and started over following the directions you posted. Between you and Pihhan I got it working now!
Score:1
er flag

This problem is likely caused by configuration error. Have you tried running named-checkconf command?

Use journalctl -xeu named to read longer details from named. There should be exact reason. If the configuration is correct, I would guess another service is already listening on port 53. Try sudo ss -lnp | grep :53.

MattCaz avatar
sm flag
YOU GOT IT! I ran named-checkconf and had 2 instructions for ACL "internals" and I commented them out and bind loads and runs now. THANK YOU SO VERY MUCH!
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.