Named - Process is stopped

[email protected]

Verified User
Joined
Oct 4, 2017
Messages
9
I have a problem with my server where the domain does not work. DNS addresses are not responding. They do not correspond to pings. Named turned off and does not want to turn on. The store stopped working suddenly all the work on the server was not performed. I have been working on fixing the problem for three days but nothing comes to mind. Has any of you already had a similar problem? I did system updates but it also did not help.

Screen:
www.masloshea.eu/1.png
www.masloshea.eu/2.png
www.masloshea.eu/3.png
www.masloshea.eu/4.png
 
Did you reboot your server?

If it's still not resolved then open two shell windows:-

In first window fire command:- tail -f /var/log/messages
In second window fire command:- service named restart

And then paste those logs here.
 
DNS servers are registered.

Code:
root@v3218:~# tail -f /var/log/messages
Dec  4 19:39:25 v3218 pure-ftpd: ([email protected]) [INFO] New connection from 118.193.31.179
Dec  4 19:39:28 v3218 pure-ftpd: ([email protected]) [INFO] Logout.
Dec  4 22:07:27 v3218 pure-ftpd: ([email protected]) [INFO] New connection from 85.238.64.104
Dec  4 22:07:33 v3218 pure-ftpd: ([email protected]) [WARNING] Authentication failed for user [anonymous]
Dec  4 22:07:33 v3218 pure-ftpd: ([email protected]) [INFO] Logout.
Dec  5 00:04:02 v3218 rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="1595" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Dec  5 03:41:20 v3218 pure-ftpd: ([email protected]) [INFO] New connection from 45.79.134.85
Dec  5 03:41:21 v3218 pure-ftpd: ([email protected]) [INFO] Logout.
Dec  5 05:33:49 v3218 pure-ftpd: ([email protected]) [INFO] New connection from 216.218.206.68
Dec  5 05:33:49 v3218 pure-ftpd: ([email protected]) [INFO] Logout.

Code:
root@v3218:~# service named restart
/etc/init.d/named: line 12: /etc/rc.d/init.d/functions: There is no such file or directory
/etc/init.d/named: line 15: /etc/sysconfig/network: There is no such file or directory
 
DNS servers are registered.

Code:
root@v3218:~# tail -f /var/log/messages
Dec  4 19:39:25 v3218 pure-ftpd: ([email protected]) [INFO] New connection from 118.193.31.179
Dec  4 19:39:28 v3218 pure-ftpd: ([email protected]) [INFO] Logout.
Dec  4 22:07:27 v3218 pure-ftpd: ([email protected]) [INFO] New connection from 85.238.64.104
Dec  4 22:07:33 v3218 pure-ftpd: ([email protected]) [WARNING] Authentication failed for user [anonymous]
Dec  4 22:07:33 v3218 pure-ftpd: ([email protected]) [INFO] Logout.
Dec  5 00:04:02 v3218 rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="1595" x-info="http://www.rsyslog.com"] rsyslogd was HUPed
Dec  5 03:41:20 v3218 pure-ftpd: ([email protected]) [INFO] New connection from 45.79.134.85
Dec  5 03:41:21 v3218 pure-ftpd: ([email protected]) [INFO] Logout.
Dec  5 05:33:49 v3218 pure-ftpd: ([email protected]) [INFO] New connection from 216.218.206.68
Dec  5 05:33:49 v3218 pure-ftpd: ([email protected]) [INFO] Logout.

Code:
root@v3218:~# service named restart
/etc/init.d/named: line 12: /etc/rc.d/init.d/functions: There is no such file or directory
/etc/init.d/named: line 15: /etc/sysconfig/network: There is no such file or directory
 
Try this one:
Code:
cd /etc/init.d
mv named named.old
wget -O named http://files1.directadmin.com/services/debian_7.0_64/named.boot.debian
chmod 755 named
John
 
Thanks.
But it does not work either.

Code:
root@v3218:~# cd /etc/init.d
root@v3218:/etc/init.d# mv named named.old
root@v3218:/etc/init.d# wget -O named http://files1.directadmin.com/services/debian_7.0_64/named.boot.debian
--2017-12-06 09:19:12--  http://files1.directadmin.com/services/debian_7.0_64/named.boot.debian
Translacja files1.directadmin.com (files1.directadmin.com)... unsuccessful: This name or service is unknown.
wget: host address `files1.directadmin.com' could not be resolved
root@v3218:/etc/init.d# chmod 755 named
 
Update /etc/resolv.conf

to have the line

Code:
nameserver 8.8.8.8

at the very first line, and then try commands from John again.
 
Commands from John could be done but you can not run named.

An error is displayed.

Code:
root@v3218:~# /etc/init.d/named start
[FAIL] Starting domain name service...: bind9 failed!
root@v3218:~# /etc/init.d/bind9 start
/etc/init.d/bind9: line 12: /etc/rc.d/init.d/functions: There is no such file or directory
/etc/init.d/bind9: line 15: /etc/sysconfig/network: There is no such file or directory
 
Update: I was able to login to check, and this was the error in the /var/log/syslog
Code:
Dec  6 22:31:06 server named[503]: loading configuration from '/etc/bind/named.conf'
Dec  6 22:31:06 server named[503]: /etc/bind/named.conf.options:2: change directory to '/var/cache/bind' failed: file not found
Dec  6 22:31:06 server named[503]: /etc/bind/named.conf.options:2: parsing failed
Dec  6 22:31:06 server named[503]: loading configuration: file not found
Dec  6 22:31:06 server named[503]: exiting (due to fatal error)
So I ran:
Code:
mkdir -p /var/cache/bind

This is also using this boot script in /etc/init.d/named:
Code:
http://files1.directadmin.com/services/debian_7.0_64/named.boot.debian
as the old one appeared to a redhat instance, trying to load in /etc/rc.d/init.d/functions and /etc/sysconfig/network, which are not part of the Debian OS.

John
 
Back
Top