NS Not resolving

hoangnam

Verified User
Joined
Dec 1, 2020
Messages
5
Hi,

Currently some domain names cannot be resolved when I use the Directadmin nameservers.
Nameserver: ns1.domain.com

I check named.service then it's getting an error. I tried a few methods on the DA forum but it failed to fix it.

Log error messages:
[root @ test] # systemctl status named.service
● named.service - Berkeley Internet Name Domain (DNS)
Loaded: loaded (/etc/systemd/system/named.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2021-03-15 18:40:21 +07; 2 years ago

Mar 15 18:40:21 xxx systemd [1]: named.service: control process exited, code = exited status = 1
Mar 15 18:40:21 xxx systemd [1]: Failed to start the Berkeley Internet Name Domain (DNS).
Mar 15 18:40:21 xxx systemd [1]: Unit named.service entered failed state.
Mar 15 18:40:21 xxx systemd [1]: named.service failed.

Thank you.
 
check /var/log/messages for more details.
I use command: cat /var/log/messages | grep "named"
It reported an error

Mar 15 21:33:01 xxx systemd: named.service failed.
Mar 15 21:33:07 xxx systemd: named.service: control process exited, code=exited status=1
Mar 15 21:33:07 xxx systemd: Unit named.service entered failed state.
Mar 15 21:33:07 xxx systemd: named.service failed.
 
Actually you should see more of an error, you're missing 6 seconds because of the 'grep'. Well, not 6 seconds... but you still miss something. If named fails to start it usually tells you why.

Try running this:
/usr/sbin/named-checkconf /etc/named.conf
 
Actually you should see more of an error, you're missing 6 seconds because of the 'grep'. Well, not 6 seconds... but you still miss something. If named fails to start it usually tells you why.

Try running this:
/usr/sbin/named-checkconf /etc/named.conf
Sorry.

I ran the command cat /var/log/message but it shows a lot.
Mar 16 08:54:20 xxx bash: zone domain.xyz/IN: loaded serial 2020123000
Mar 16 08:54:20 xxx bash: zone domain.xyz/IN: loaded serial 2021021100
Mar 16 08:54:20 xxx bash: zone domain.xyz/IN: loaded serial 2021022100
Mar 16 08:54:20 xxx systemd: Failed to start Berkeley Internet Name Domain (DNS).
Mar 16 08:54:20 xxx systemd: Unit named.service entered failed state.
Mar 16 08:54:20 xxx systemd: named.service failed.


I ran the command: /usr/sbin/named-checkconf /etc/named.conf
But it did not report anything
 
Didn't jou get a notice like check journalctl -xe?

Try to restart via ssh and run journaltl -xe if you get that message.
 
Thank you,

The problem has been resolved
The reason is that there 1 domain I have incorrectly configured nameserver.

I have fixed it in /var/named/domain.xyz.db
 
You could have changed this in the DNS administration better.
Because to update this, the SOA serial needs updated which is done automatically if you change it via the GUI.

Unless you have done it manually.

Glad to see it's fixed anyway.
 
Back
Top