Records "not" too long fails with "ran out of space"

Ondřej Surý ondrej at isc.org
Tue Dec 27 16:39:43 UTC 2022


First of all, it’s harder to help you if you don’t share the real domains, but let’s suppose at least the rpz.local is real.

The maximum length is **255** including the label length for each label. I have no idea where you got 256. Each label have maximum length of 63 bytes (not 63-64).

Now, your 243 is actually 244 (first label also have to have length) + 4 (rpz) + 6 (local) + 1 (root) is exactly 255.

Ondrej
--
Ondřej Surý — ISC (He/Him)

My working hours and your working hours may be different. Please do not feel obligated to reply outside your normal working hours.

> On 27. 12. 2022, at 16:50, Jesus Cea <jcea at jcea.es> wrote:
> 
> Configuring my RPZ installation, the zone fails to load because some register are "too long". The error in the logs is something like:
> 
> """
> dns_master_load: ../primarios/db.rpz.local:137146: ran out of space
> """
> 
> I did some tests and the zone load fails if records are longer than 243 characters. According to RFCs, I understand that it should work for records up to 256 characters, with a maximum of 63-64 characters per label.
> 
> As I said, my zone fails to load if any domain in the RPZ is bigger than 243 characters. Currently, my RPZ zone structure is something like:
> 
> """
> ZZZZZ.YYYY.XXXXX.com CNAME .
> """
> 
> This is bind 9.16.
> 
> I needed to delete some "long" records and I wonder why is my bind rejecting them.
> 
> -- 
> Jesús Cea Avión                         _/_/      _/_/_/        _/_/_/
> jcea at jcea.es - https://www.jcea.es/    _/_/    _/_/  _/_/    _/_/  _/_/
> Twitter: @jcea                        _/_/    _/_/          _/_/_/_/_/
> jabber / xmpp:jcea at jabber.org  _/_/  _/_/    _/_/          _/_/  _/_/
> "Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
> "My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
> "El amor es poner tu felicidad en la felicidad de otro" - Leibniz
> -- 
> Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list
> 
> ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.
> 
> 
> bind-users mailing list
> bind-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users


More information about the bind-users mailing list