BIND9 Errors

Below are my zone files and i receive the errors as specified.

 BIND data file for
$TTL    604800
@       IN      SOA (
                            2007011501         ; Serial
                                  7200         ; Refresh
                                   120         ; Retry
                               2419200         ; Expire
                                604800)        ; Default TTL
@       IN      NS
@       IN      NS    IN      MX      10    IN      A
www                     IN      CNAME
mail                    IN      A
ftp                     IN      CNAME         IN      TXT     "v=spf1 ip4: a mx ~all"
mail                    IN      TXT     "v=spf1 a -all"
;dns_rdata_fromtext: near eol: unexpected end of input
zone loading master file unexpected end of input


mysite:/etc/bind/zones/master# more 200.19.227.rev
$TTL 1d ;
$ORIGIN 227.19.200.IN-ADDR.ARPA.
@       IN      SOA    (
        IN      NS
        IN      NS
1       IN      PTR
2       IN      PTR

mysite:/etc/bind/zones/master# named-checkzone 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 (
200.19.227.rev:13: ignoring out-of-zone data (
zone 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:

$TTL 86400
@ IN SOA (
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 means what.

I know and 2 dnsrecords which are and and have different ip’s points to an ip; so what will be and

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

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

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


would be needed.