Author Topic: Cant start DNS  (Read 15588 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Cant start DNS
« on: December 17, 2016, 04:17:03 PM »
Can anyone please help me out here.
I get the following error when trying to start DNS service.

Stopping named: [  OK  ]
Starting named:
Error in named configuration:
/etc/named.conf:74: zone '': is not a valid name
[FAILED]

Offline
*****
Re: Cant start DNS
« Reply #1 on: December 17, 2016, 04:18:47 PM »
check the
/etc/named.conf

on line 74

or post the full texts.

Offline
*
Re: Cant start DNS
« Reply #2 on: December 18, 2016, 12:52:54 PM »
Thanks for the reply,

Here´s the complete content of the named.conf

----------------------------------------------------------
//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a any DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
   listen-on port 53 { any; };
   listen-on-v6 port 53 { ::1; };
   directory    "/var/named";
   dump-file    "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
   allow-query     { any; };
   recursion no;

   dnssec-enable yes;
   dnssec-validation yes;

   /* Path to ISC DLV key */
   bindkeys-file "/etc/named.iscdlv.key";

   managed-keys-directory "/var/named/dynamic";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
   type hint;
   file "named.ca";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";



// zone djgaston.nl
zone "djgaston.nl" {
                                   type master;
                                        file "/var/named/djgaston.nl.db";};
// zone_end djgaston.nl
zone "ns1.argewebhosting.eu" {type master;file "/var/named/ns1.argewebhosting.eu.db";};
zone "ns3.argewebhosting.nl" {type master;file "/var/named/ns3.argewebhosting.nl.db";};
zone "ns2.argewebhosting.com" {type master;file "/var/named/ns2.argewebhosting.com.db";};


// zone bcoin.nl
zone "bcoin.nl" {
                                   type master;
                                        file "/var/named/bcoin.nl.db";};
// zone_end bcoin.nl

// zone kastenbank.nl
zone "kastenbank.nl" {
                                   type master;
                                        file "/var/named/kastenbank.nl.db";};
// zone_end kastenbank.nl

// zone oudersblog.nl
zone "oudersblog.nl" {
                                   type master;
                                        file "/var/named/oudersblog.nl.db";};
// zone_end oudersblog.nl

zone "" {
type master;
file "/var/named/.db";
};




// zone forallkids.co.uk
zone "forallkids.co.uk" {
                                   type master;
                                        file "/var/named/forallkids.co.uk.db";};
// zone_end forallkids.co.uk


// zone forallkids.nl
zone "forallkids.nl" {
                                   type master;
                                        file "/var/named/forallkids.nl.db";};
// zone_end forallkids.nl

-----------------------------------------------------------------

Offline
*
Re: Cant start DNS
« Reply #3 on: December 18, 2016, 04:40:27 PM »
Edit and delete

zone "" {
type master;
file "/var/named/.db";
};

Save and restart DNS

Offline
*
Re: Cant start DNS
« Reply #4 on: December 18, 2016, 07:53:02 PM »
Edited and removed .
This is the result.

----------------------------------------------------------------------------
Stopping named: [  OK  ]
Starting named:
Error in named configuration:
zone localhost.localdomain/IN: loading from master file named.localhost failed: file not found
zone localhost.localdomain/IN: not loaded due to errors.
_default/localhost.localdomain/IN: file not found
zone localhost/IN: loading from master file named.localhost failed: file not found
zone localhost/IN: not loaded due to errors.
_default/localhost/IN: file not found
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: loading from master file named.loopback failed: file not found
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: not loaded due to errors.
_default/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: file not found
zone 1.0.0.127.in-addr.arpa/IN: loading from master file named.loopback failed: file not found
zone 1.0.0.127.in-addr.arpa/IN: not loaded due to errors.
_default/1.0.0.127.in-addr.arpa/IN: file not found
zone 0.in-addr.arpa/IN: loading from master file named.empty failed: file not found
zone 0.in-addr.arpa/IN: not loaded due to errors.
_default/0.in-addr.arpa/IN: file not found
zone ns1.argewebhosting.eu/IN: loaded serial 2013071600
zone ns3.argewebhosting.nl/IN: loading from master file /var/named/ns3.argewebhosting.nl.db failed: file not found
zone ns3.argewebhosting.nl/IN: not loaded due to errors.
_default/ns3.argewebhosting.nl/IN: file not found
zone ns2.argewebhosting.com/IN: loaded serial 2013071600
zone djgaston.nl/IN: loaded serial 2016121814
zone bcoin.nl/IN: loaded serial 2016121820
zone kastenbank.nl/IN: loaded serial 2013071600
zone oudersblog.nl/IN: loaded serial 2013071600
zone forallkids.co.uk/IN: loaded serial 2016121814
zone forallkids.nl/IN: loaded serial 2016121821
[FAILED]

-------------------------------------------------------------------------

Offline
*
Re: Cant start DNS
« Reply #5 on: December 19, 2016, 03:11:52 PM »
Ik las ergens dat het niet heel erg is als bind DNS eruit ligt, heb het zelf namelijk ook en alles werkt gewoon!

Gewoon de website uploaden en de naamservers goed hebben bij de domain registrar. Als goed is doet dan alles het

Or you can try this
http://centos-webpanel.com/support-services

For 7 euros they hopefully can fix your problem.
« Last Edit: December 19, 2016, 03:17:16 PM by ehid »

Offline
*
Re: Cant start DNS
« Reply #6 on: January 05, 2021, 05:59:17 PM »
do you resolve this?