Zone has no NS records, BIND does not load files

sinanouri

Registered
Jun 7, 2020
1
0
1
turkey
cPanel Access Level
Root Administrator
I recently bought a dedicated server from OVH and installed Centos 7 and Cpanel on it it seems there is problems with my BIND configuration because even BIND it self can not resolve its own IP address. and when i start bind,it starts but i saw these in log file:

Erros in /var/log/named:

07-Jun-2020 16:10:43.903 general: error: zone server-123.xyz/IN/internal: has no NS records
07-Jun-2020 16:10:43.903 general: error: zone server-123.xyz/IN/internal: not loaded due to errors.
07-Jun-2020 16:10:43.908 general: error: zone server-123.xyz/IN/external: has no NS records
07-Jun-2020 16:10:43.908 general: error: zone server-123.xyz/IN/external: not loaded due to errors.

my configurations is like below:

host name: s1.server-123.xyz
ns1: ns1.server-123.xyz
ns2: ns2.server-123.xyz

zonefile:

; cPanel first:88.0.6 (update_time):1591539730 Cpanel::ZoneFile::VERSION:1.3 hostname:s1.server-123.xyz latest:88.0.6
; Zone file for server-123.xyz
$TTL 14400
server-123.xyz. 86400 IN SOA ns1.server-123.xyz. root.s.server-123.xyz. (
2020060720 ;Serial Number
3600 ;refresh
1800 ;retry
1209600 ;expire
86400 )



server-123.xyz. 14400 IN A [redacted]

server-123.xyz. 14400 IN MX 0 server-123.xyz.

mail 14400 IN CNAME server-123.xyz.
www 14400 IN CNAME server-123.xyz.
ftp 14400 IN A [redacted]
server-123.xyz. 14400 IN TXT "v=spf1 +a +mx +ip4:[redacted] ~all"
default._domainkey 14400 IN TXT "v=DKIM1; k=rsa;p=****;
ns1 14400 IN A [redacted]
ns2 14400 IN A [redacted]
s1 14400 IN A [redacted]

Would you please help me understand what is the problem?

[Moderator note: removed IP addresses]
 
Last edited by a moderator:

cPSamuelM

Technical Analyst Team Lead
Staff member
Nov 20, 2019
196
37
103
USA
cPanel Access Level
Root Administrator
Hello @sinanouri

The following command will report the specific errors in the zone file:

named-checkzone server-123.xyz /var/named/server-123.xyz.db

Note, you will need to replace server-123.xyz with your actual domain name. Please feel free to reply with the results of the command and we will be happy to review. Please make sure you rename or exclude your actual domain name from your response, so that it is not exposed publicly here in our forums.

Best regards