What is maximum size BIND can accept in A Record?>

Tony Finch dot at dotat.at
Wed Jun 5 13:57:41 UTC 2019


Mukund Sivaraman <muks at mukund.org> wrote:

> On Wed, Jun 05, 2019 at 12:07:56PM +0100, Tony Finch wrote:
> > The maximum length is 254 including the terminating dot. The maximum
>
> 254 excluding the terminating dot or 255 including the terminating dot.

255 is the wire format limit not the presentation format limit :-)

If you don't have any escaped characters, the presentation format
(including terminating dot) is one shorter than the wire format because
the wire format has a length byte before each label plus a terminator at
the end, whereas the presentation format doesn't have a dot at the start.

With escaping the presentation format of a name can be 1004 characters.
(254 - 4) * 4 + 4

Tony.
-- 
f.anthony.n.finch  <dot at dotat.at>  http://dotat.at/
Trafalgar: West or northwest 4 or 5, increasing 6 at times. Slight at times in
far southeast, otherwise moderate, occasionally rough at first in north.
Showers in north. Good.


More information about the bind-users mailing list