Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Since I updated my BIND DNS server I seem to be having problems with it. For some reason, when I try to start the server I get errors such as this appear:

zone '' has no address records (A or AAAA)

For some reason, it seems to be naming my records as '' - so the format domain.domain. I guess it should be reading ''.

This is happening for every domain on my server which is running CentOS 6.5 and Virtualmin. My config files are below.

Relevant section of /etc/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 localhost DNS resolver only).
// See /usr/share/doc/bind*/sample/ for example named configuration files.

options {
    listen-on port 53 {; };
    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     { localhost; };
    recursion yes;

    dnssec-enable yes;
    dnssec-validation yes;
    dnssec-lookaside auto;

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

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

logging {
        channel default_debug {
                file "data/";
                severity dynamic;

zone "." IN {
    type hint;
    file "";

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

zone "" {
    type master;
    file "/var/named/";
    allow-transfer {;


$ttl 38400
@   IN  SOA (
            38400 )
@   IN  NS  IN  A  IN  A  IN  A    IN  A    IN  A  IN  A    IN  A IN  A  IN  MX  5  IN  TXT "v=spf1 a mx ip4: ?all" IN NS   IN  A

Any help on this would be really appreciated.

share|improve this question
up vote 5 down vote accepted

Loks like you are missing the dot at the end of your NS record. This IN NS

should be IN NS

The DOT in a Zone File

share|improve this answer
This is on the right track but I guess your example should say IN NS or @ IN NS – Håkan Lindqvist Apr 12 '14 at 10:50
Thanks both. Yes this was the problem, I needed a dot at the end of the domain and at the end of the name server. The configuration for BIND was handled by Virtualmin automatically and setup each zone as ${DOM} IN NS I adjusted this to read ${DOM}. IN NS and this fixed the problem. – Joel Kennedy Apr 12 '14 at 11:01
Thanks Hakan, silly me, didn't even look at that part – Dusan Bajic Apr 12 '14 at 11:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.