this is my configuration file zone

$TTL 604800
@  IN      SOA     SH.globaltic.tk.      root.globaltic.tk. (
                                         2011052501 ;serial
                                         604800     ; Refresh
                                         86400      ; Retry
                                         2419200    ; Expire
                                         604800     ; Negative Cache TTL )

@           IN      NS      SH.globaltic.tk.
@           IN      NS      mail.globaltic.tk.
@           IN      MX  10  mail.globaltic.tk.
SH          IN      A
mail        IN      A

when I did a test:

root@SH:/etc/bind#named-checkzone globaltic.tk db.globaltic.tk
dns_rdata_fromtext: db.globaltic.tk:7: near '@': extra input text
zone globaltic.tk/IN: loading from master file db.globaltic.tk failed: extra input     >>     text
zone globaltic.tk/IN: not loaded due to errors.

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


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.

  • 1
    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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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