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

I know that this is a little outside the scope of this website, but I am trying to set up a test DNS server, and it absolutely refuses to resolve the local domains. I've tried following the advice of several tutorials and posts in various forums with no luck.

Whenever I attempt to use dig or nslookup, the server responds with a generic SERVFAIL. Interestingly enough, the reverse lookups work just fine.

I am sure it is a simple issue, but I am at wits end with trying to find it. Any help would be greatly appreciated.


Hostname: ns2.tenebris.cs

Here are the files in question:


search ns2.tenebris.cs


zone "tenebris.cs"{
    type master;
    file "/etc/bind/zones/tenebris.cs.db";
zone ""{
        type master;
        file "/etc/bind/zones/";


$TTL 86400      ; 1 day

tenebris.cs.  IN  SOA ns2.tenebris.cs. (
2008080901 ; serial
8H ; refresh
4H ; retry
4W ; expire
1D ; minimum

       IN    NS  ns2.tenebris.cs.
       IN    MX  hermes.tenebris.cs.
       IN    A

localhost IN A
ns2     IN A
www     IN A
zeus    IN A
hermes  IN A

www     IN CNAME tenebris.cs.
share|improve this question

You use named-checkzone.

$ named-checkzone tenebris.cs cs.db 
dns_rdata_fromtext: cs.db:13: near 'hermes.tenebris.cs.': not a valid number
dns_master_load: cs.db:22: www.tenebris.cs: CNAME and other data
zone tenebris.cs/IN: loading from master file cs.db failed: not a valid number
zone tenebris.cs/IN: not loaded due to errors.

The first error tells you that you have a problem with your MX record pointing to hermes.tenebris.cs. MX records take the format:

name           ttl  class   rr  pref name

You are missing the pref. Since you have only one, you can set this to any valid number between 0 and 65535. I tried 10.

The next error is with your CNAME. A CNAME cannot coexist with another record. You have a duplicate with www pointing to both an A record as well as a CNAME.

Remove the A record and now your zone should work!

share|improve this answer

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.