Reload of named.service fails, and multiple named processes on Debian 9

Here is more info:

Bash:
lucian@server:/etc/init.d$ sudo service named reload
 * Reloading domain name service... named
rndc: connect failed: 127.0.0.1#953: connection refused [fail]
lucian@server:/etc/init.d$ sudo service named status
● named.service
     Loaded: bad-setting (Reason: Unit named.service has a bad unit file setting.)
     Active: inactive (dead)

Dec 09 15:01:16 server.codesigner.uk systemd[1]: named.service: Service has no ExecStart=, ExecStop=, or SuccessAction=. Refusing.
Dec 09 15:01:16 server.codesigner.uk systemd[1]: /etc/systemd/system/named.service:1: Assignment outside of section. Ignoring.
Dec 09 15:01:16 server.codesigner.uk systemd[1]: /etc/systemd/system/named.service:2: Assignment outside of section. Ignoring.
Dec 09 15:01:16 server.codesigner.uk systemd[1]: /etc/systemd/system/named.service:3: Assignment outside of section. Ignoring.
Dec 09 15:01:16 server.codesigner.uk systemd[1]: /etc/systemd/system/named.service:4: Assignment outside of section. Ignoring.
Dec 09 15:01:16 server.codesigner.uk systemd[1]: /etc/systemd/system/named.service:5: Assignment outside of section. Ignoring.
Dec 09 15:01:16 server.codesigner.uk systemd[1]: /etc/systemd/system/named.service:6: Assignment outside of section. Ignoring.
Dec 09 15:01:16 server.codesigner.uk systemd[1]: /etc/systemd/system/named.service:7: Assignment outside of section. Ignoring.
Dec 09 15:01:16 server.codesigner.uk systemd[1]: /etc/systemd/system/named.service:8: Assignment outside of section. Ignoring.
Dec 09 15:01:16 server.codesigner.uk systemd[1]: /etc/systemd/system/named.service:9: Assignment outside of section. Ignoring.
lucian@server:/etc/init.d$
 
Code:
cat /etc/systemd/system/named.service

Here is what I get:

Bash:
cat /etc/systemd/system/named.service
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL was not found on this server.</p>
<p>Additionally, a 404 Not Found
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>
 
Code:
rm -f /etc/systemd/system/named.service
/usr/local/directadmin/custombuild/build update
/usr/local/directadmin/custombuild/build bind
THAT DID IT! EVRIKA! Intergalactic Blessings to You.
Thanks Kristian and Richard!
 
Last edited:
Back
Top