Author Topic: DNS server failed to load  (Read 4605 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
DNS server failed to load
« on: June 16, 2020, 12:35:33 AM »
hello,

i am having issues with dns server , its giving following error while loading. kindly suggest how to fix these errors.

there are two main errors i see due to which dns server is not loading the zone file.

/var/named/esoftware.pk.db:36: file does not end with newline

what does this means? and how to end with newline?

zone esoftware.pk/IN: has no NS records

when i try to add NS record in dns zone file it gives error , (there is some error with configuration, please check and update)

also i am not able to add A record for ns1 and ns2 to point to my server IP

-- Unit named.service has begun starting up.
Jun 15 15:59:16 server.esoftware.pk bash[26011]: zone localhost.localdomain/IN: loaded serial 0
Jun 15 15:59:16 server.esoftware.pk bash[26011]: zone localhost/IN: loaded serial 0
Jun 15 15:59:16 server.esoftware.pk bash[26011]: zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0
Jun 15 15:59:16 server.esoftware.pk bash[26011]: zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0
Jun 15 15:59:16 server.esoftware.pk bash[26011]: zone 0.in-addr.arpa/IN: loaded serial 0
Jun 15 15:59:16 server.esoftware.pk bash[26011]: /var/named/esoftware.pk.db:36: file does not end with newline
Jun 15 15:59:16 server.esoftware.pk bash[26011]: zone esoftware.pk/IN: has no NS records
Jun 15 15:59:16 server.esoftware.pk bash[26011]: zone esoftware.pk/IN: not loaded due to errors.
Jun 15 15:59:16 server.esoftware.pk bash[26011]: _default/esoftware.pk/IN: bad zone
Jun 15 15:59:16 server.esoftware.pk bash[26011]: zone ns1.esoftware.pk/IN: loaded serial 2020061400
Jun 15 15:59:16 server.esoftware.pk bash[26011]: zone ns2.esoftware.pk/IN: loaded serial 2020061400
Jun 15 15:59:16 server.esoftware.pk bash[26011]: zone ns1.test-domain.com/IN: loaded serial 2013071600
Jun 15 15:59:16 server.esoftware.pk bash[26011]: zone ns2.test-domain.com/IN: loaded serial 2013071600
Jun 15 15:59:16 server.esoftware.pk systemd[1]: named.service: control process exited, code=exited status=1
Jun 15 15:59:16 server.esoftware.pk systemd[1]: Failed to start Berkeley Internet Name Domain (DNS).
-- Subject: Unit named.service has failed
« Last Edit: June 16, 2020, 12:37:49 AM by zeejdeej »

Offline
*
Re: DNS server failed to load
« Reply #1 on: June 16, 2020, 08:34:04 AM »
Simply modify that file, add a new line at the end "Press enter" and save, restart the DNS server and it should work.
Partner de CWP

Hosting de calidad en Espaņa con soporte en Espaņol para CWP - https://www.coriaweb.hosting