Solved named not starting

sufiyanshaikh

Verified User
Joined
Aug 14, 2019
Messages
183
Hello,

I installed a fresh copy of DA yesterday and today I found that named is not running.
Error:

Jan 25 15:07:02 server.domain.com bash[9717]: zone server.domain2.com/IN: loading from master file /var/named/server.domain.com.db failed: file not found
Jan 25 15:07:02 server.domain.com bash[9717]: zone server.domain2.com/IN: not loaded due to errors.
Jan 25 15:07:02 server.domain.com bash[9717]: _default/server.domain2.com/IN: file not found
Jan 25 15:07:02 server.domain.com systemd[1]: named.service: control process exited, code=exited status=1
Jan 25 15:07:02 server.domain.com systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).

Tried this too:
echo "action=rewrite&value=named" >> /usr/local/directadmin/data/task.queue

Tried other forum posts but not able to solve it.
Please help
 
Solved.

I deleted DNS record from Admin > DNS Administration > (removed the record of hostname in my case)
Then I added it back and the issue is solved.
Even tried changing hostname and it's working fine now.

Seems like a BUG in DA
 
okay so you go to > DNS administration > and then remove the hostname domain in there?
I am a bit scared to do this as I would think it is soo important to the system as it is the vps hostname. Afraid that I get kicked out and can not enter anymore ?

When I click on the domain hostname I see an error ...
Error Reading db file​
Details
Can't open file /var/named/vps.nameoftheserver.nl.db for reading​
 
YES. I was connected via my server IP and not the hostname. Check if you are able to access DirectAdmin via Server IP
okay so you go to > DNS administration > and then remove the hostname domain in there?


I don't think you will face any issues because you will re-add it :) (make sure DA is accessible via IP first)
I am a bit scared to do this as I would think it is soo important to the system as it is the vps hostname. Afraid that I get kicked out and can not enter anymore ?

I was facing the exact same error and the solution I provided fixed it!
When I click on the domain hostname I see an error ...

Error Reading db file​

Details
Can't open file /var/named/vps.nameoftheserver.nl.db for reading​
 
I don't think you will face any issues because you will re-add it :) (make sure DA is accessible via IP first)
Yes I see that I can also enter it via IP.

There is also a checkbox with "create reverse lookup"
Do I have to checkmark that box?

Thanks!
 
It worked!! ??

Thanks!! ?

It is always a sweaty thing for me to do things on the server with many sites on it.. as I am new to directadmin..
 
That is on the page when you click on > DNS administration >
Then on the bottom of the list where you can add a zone.
 
I also had this issue and was a little scared to remove the main domain. But i did find out that it had to do with the DNS settings of the main domain. First i tried to fix it by changing the NDS manually, but it seemed that I overlooked some records. Finally I just used the button "RESTE DEFAULTS" for that specific domain and restarted the named service afterwards. Then it was fixed. So not even a SSH session is needed ;-)
 
Back
Top