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

A question about DNS zone files syntax (not sure if it's correct term here).

For my dedicated server I have the following zone file right now:

$TTL 86400
@   IN SOA (
    2013111400   ; serial
    14400        ; refresh
    1800         ; retry
    604800       ; expire
    86400 )      ; minimum

@                        IN NS
@                        IN NS
@                        IN NS

@                        IN A
localhost                IN A
www                      IN A
@                        IN MX 100

And I wonder if the 2 lines (which use the same IP-address on the right side) could be written in a shorter form?

@                        IN A
www                      IN A
share|improve this question

Not exactly shorter but you can change the 'www' record to a CNAME over an A record. If you set it to a CNAME of your base domain, you will only have to update the primary A record for both to be changed.

share|improve this answer
Thanks. Do you mean www CNAME – Alexander Farber Nov 15 '13 at 11:59
I'm not actually sure, as I haven't used bind before. Just copy the rest of the syntax, which looks like it would be 'www IN CNAME' – Peter Nov 15 '13 at 12:03
Peter is right. It is common to use www IN CNAME @ in Bind. Just copy paste that as a replacement to 'www IN A' – Daniel t. Nov 15 '13 at 21:14

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.