BIND9 Errors

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
kkonline
Forum Contributor
Posts: 251
Joined: Thu Aug 16, 2007 12:54 am

BIND9 Errors

Post by kkonline »

Hi,
Below are my zone files and i receive the errors as specified.
mysite.org.db

Code: Select all

BIND data file for mysite.org
;
$TTL    604800
@       IN      SOA     mysite.org. (
                            2007011501         ; Serial
                                  7200         ; Refresh
                                   120         ; Retry
                               2419200         ; Expire
                                604800)        ; Default TTL
;
@       IN      NS      ns1.ns.com.
@       IN      NS      ns2.ns.com.
mysite.org.    IN      MX      10      mail.mysite.org.
mysite.org.    IN      A       200.19.227.135
www                     IN      CNAME   mysite.org.
mail                    IN      A       200.19.227.135
ftp                     IN      CNAME   mysite.org.
mysite.org.         IN      TXT     "v=spf1 ip4:200.19.227.135 a mx ~all"
mail                    IN      TXT     "v=spf1 a -all"
mysite:/etc/bind/zones/master#

Code: Select all

;
;dns_rdata_fromtext: mysite.org.db:10: near eol: unexpected end of input
zone mysite.org/IN: loading master file mysite.org.db: unexpected end of input
 
200.19.227.rev

Code: Select all

mysite:/etc/bind/zones/master# more 200.19.227.rev
$TTL 1d ;
$ORIGIN 227.19.200.IN-ADDR.ARPA.
@       IN      SOA     ns1.ns.com.    (
                                       2007011501
                                       7200
                                       120
                                       2419200
                                       604800
)
        IN      NS      ns1.ns.com.
        IN      NS      ns2.ns.com.
1       IN      PTR     ns1.ns.com.
2       IN      PTR     ns2.ns.com.
mysite:/etc/bind/zones/master#
 

Code: Select all

mysite:/etc/bind/zones/master# named-checkzone mysite.org 200.19.227.rev
200.19.227.rev:3: ignoring out-of-zone data (227.19.200.IN-ADDR.ARPA)
dns_rdata_fromtext: 200.19.227.rev:8: near eol: unexpected end of input
200.19.227.rev:12: ignoring out-of-zone data (1.227.19.200.IN-ADDR.ARPA)
200.19.227.rev:13: ignoring out-of-zone data (2.227.19.200.IN-ADDR.ARPA)
zone mysite.org/IN: loading master file 200.19.227.rev: unexpected end of input
 
How to correct these errors?
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: BIND9 Errors

Post by VladSun »

As far as I remember, you must have an empty line (new line) at the end of every config file bind uses.
Also, remove the ";" chars where you don't have any comments.
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: BIND9 Errors

Post by VladSun »

Did you manage to solve this?
There are 10 types of people in this world, those who understand binary and those who don't
kkonline
Forum Contributor
Posts: 251
Joined: Thu Aug 16, 2007 12:54 am

Re: BIND9 Errors

Post by kkonline »

mysite:/etc/bind/zones/master# named-checkzone mysite.org 200.19.227.rev gives me below results but mysite.org.db is OK now

Code: Select all

 
200.19.227.rev:3: ignoring out-of-zone data (227.19.200.IN-ADDR.ARPA)
200.19.227.rev:12: ignoring out-of-zone data (1.227.19.200.IN-ADDR.ARPA)
200.19.227.rev:13: ignoring out-of-zone data (2.227.19.200.IN-ADDR.ARPA)
zone mysite.org/IN: has 0 SOA records
zone mysite.org/IN: has no NS records
 
Post Reply