From owner-freebsd-questions@freebsd.org Wed Sep 13 13:20:34 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 32695E20C73 for ; Wed, 13 Sep 2017 13:20:34 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from bede.home.qeng-ho.org (bede.qeng-ho.org [217.155.128.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "fileserver.home.qeng-ho.org", Issuer "fileserver.home.qeng-ho.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id CC1AA63865 for ; Wed, 13 Sep 2017 13:20:32 +0000 (UTC) (envelope-from freebsd@qeng-ho.org) Received: from arthur.home.qeng-ho.org (arthur.home.qeng-ho.org [172.23.1.2]) by bede.home.qeng-ho.org (8.15.2/8.15.2) with ESMTP id v8DDKUwl063276; Wed, 13 Sep 2017 14:20:30 +0100 (BST) (envelope-from freebsd@qeng-ho.org) Subject: Re: what is max size of unbound local-zone domain name To: Ernie Luzar , "freebsd-questions@freebsd.org" References: <59B92F4B.8020400@gmail.com> From: Arthur Chance Message-ID: <2de990e0-78a1-a05f-8d28-42fd1aef5744@qeng-ho.org> Date: Wed, 13 Sep 2017 14:20:30 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <59B92F4B.8020400@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Sep 2017 13:20:34 -0000 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).