Bind9 with $GENERATE in PTR records and a lots of ‘ignoring out-of-zone data’

bind

I have a next issue. I have subnet 92.222.0.0/17 and I rule reverse records of it. Definitions of zones are the next:

    zone "123.222.92.in-addr.arpa" {
    type master;
    file "rev/db.92.222.0-127";
};

zone "124.222.92.in-addr.arpa" {
    type master;
    file "rev/db.92.222.0-127";
};

In this single file I have a lot of:

$ORIGIN 0.222.92.in-addr.arpa.
...
$ORIGIN 123.222.92.in-addr.arpa.
$ORIGIN 124.222.92.in-addr.arpa.

In them I put a lot

$ORIGIN 123.222.92.in-addr.arpa.
$GENERATE 1-254        $ PTR   fr2-a$.example.net. 
$ORIGIN 124.222.92.in-addr.arpa.
$GENERATE 10-139        $ PTR   fr2-b$.example.net. 

All is wokring fine exept starting of bind and checking file zones with named-checkzone. In log file I have

named[4256]: rev/db.92.222.0-127:83: ignoring out-of-zone data (47.1.222.92.in-addr.arpa)

So for every string which contains $GENERATE bind is generating this warning. Try to find, how it possible to fix and no success. bind is starting at least for 40 seconds till 2 minutes differ of server.
Probably somebody can help me here?
Thank you!

Best Answer

The issue is not specific to reverse zones or $GENERATE, rather general for any case where there is data that belongs to some different zone in the zone file specified for a given zone.

Simply have one zone file per zone and this should not be an issue.