BIND9 Errors

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

 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#
;
;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

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#

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?

Looks like it’s missing an RP record.

So how and where to add rp record?

Should look like this:

$ORIGIN example.com
$TTL 86400
@ IN SOA dns1.example.com. hostmaster.example.com. (
2001062501 ; serial
21600 ; refresh after 6 hours
3600 ; retry after 1 hour
604800 ; expire after 1 week
86400 ) ; minimum TTL of 1 day

Can you please tell dns1.example.com. hostmaster.example.com. means what.

I know mysite.org and 2 dnsrecords which are ns1.ns.com and ns2.ns.com and have different ip’s

mysite.org points to an ip; so what will be dns1.example.com. and hostmaster.example.com

also this has to changed in mysite.org.db and x.x.x.rev files?

In DNS zone files, the dn1.example.com. is the zone; and hostmaster.example.com. is a ‘contact’ email; which is required. However, the ‘@’ is replaced with a ‘.’. In this case, the contact email is hostmaster@example.com,. and is represented as hostmaster.example.com. - this email field is required.

Indeed the “unexpected end of input” points to the missing email entry in the DNS zone file :

SOA ns1-servername.com. system.servername.com. (

would be needed.