Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 am trying to create a zone file which points and to my server's IP address. I read the docs, but am still having a hard time with it. Currently, the non-www version works, but the www doesn't. I don't get an config errors when I start bind. Here is my zone file:

$TTL 86400

@ IN SOA (
                        2010121801      ; serial number YYMMDDNN
                        1800 ; Refresh
                        600 ; Retry
                        864000 ; Expire
                        1800 ; Min TTL
                IN NS
                IN NS

www IN CNAME @
share|improve this question
What does "it is not working" mean? What kind of error do you get? – Sven Dec 20 '10 at 15:26
the www version just doesn't resolve – smusumeche Dec 20 '10 at 16:34
up vote 1 down vote accepted

Why don't you just make an entry like

www IN

share|improve this answer
I think you mean 'www in A' but yes, this is how I generally handle this. – kaerast Dec 20 '10 at 15:55
here's the final version that works $TTL 1800 @ IN SOA ( 2010121904 ; serial 1800 ; Refresh 600 ; Retry 864000 ; Expire 1800 ; Min TTL ) IN NS IN NS IN A @ IN A www IN A – smusumeche Dec 20 '10 at 18:37

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.