Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Sep 2017 14:20:30 +0100
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Ernie Luzar <luzar722@gmail.com>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: what is max size of unbound local-zone domain name
Message-ID:  <2de990e0-78a1-a05f-8d28-42fd1aef5744@qeng-ho.org>
In-Reply-To: <59B92F4B.8020400@gmail.com>
References:  <59B92F4B.8020400@gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On 13/09/2017 14:14, Ernie Luzar wrote:
> Hello list;
> 
> unbound has option to read in a file containing local-zone: records of
> this format.
> 
> local-zone: domain-name static
> 
> What is the max domain-name size?
> 
> Is 130 positions to large?

>From RFC 1035

2.3.4. Size limits

Various objects and parameters in the DNS have size limits.  They are
listed below.  Some could be easily changed, others are more
fundamental.

labels          63 octets or less

names           255 octets or less

I.e. each part of a domain name (label) must be <= 63 bytes, the overall
domain length must be <= 254 bytes. There are also character set
restrictions for domain name components.

-- 
An amusing coincidence: log2(58) = 5.858 (to 0.0003% accuracy).



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?2de990e0-78a1-a05f-8d28-42fd1aef5744>