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

this is my configuration file zone

$TTL 604800
@  IN      SOA (
                                         2011052501 ;serial
                                         604800     ; Refresh
                                         86400      ; Retry
                                         2419200    ; Expire
                                         604800     ; Negative Cache TTL )

@           IN      NS
@           IN      NS
@           IN      MX  10
SH          IN      A
mail        IN      A

when I did a test:

dns_rdata_fromtext: near '@': extra input text
zone loading from master file failed: extra input     >>     text
zone not loaded due to errors.

I erased each time an "@​​" I made ​​a change each time it is the same problem. *an answer?*

share|improve this question
up vote 4 down vote accepted

Move the closing bracket right behind the 604800, like this:

604800 )    ; Negative Cache TTL

and it will work.

The way you have written your zone file, the closing bracket is part of the comment, and therefore the parser cannot see it as part of the SOA declaration. When you move it to before the comment starts, the parser can see it.

share|improve this answer
extra plus one if you explain WHY. – Jed Daniels May 26 '11 at 22:50
Is that better ? – wolfgangsz May 26 '11 at 23:06
yes problem is resolved ;-) – tmedtcom May 26 '11 at 23:10
@wolfgangz Yes, thanks! (sorry to be picky, but even though it was "obvious" to some folks, sometimes a little thing like that is difficult to notice. – Jed Daniels May 27 '11 at 17:29
@Jed, you are quite right. And this site is about educating people, not just fixing their problems. – wolfgangsz May 27 '11 at 19:40

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.