<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div><div>Hi Nagesh,</div><div> Two new settings "max-records-per-type" and "max-types-per-name " were introduced in BIND 9.18.28</div><div>See BIND 9.18.28 Release Notes at: https://downloads.isc.org/isc/bind9/9.18.30/doc/arm/html/notes.html#notes-for-bind-9-18-28</div><div><br></div><div>The "max-records-per-type" default setting is 100.</div><div>https://downloads.isc.org/isc/bind9/9.18.30/doc/arm/html/reference.html#namedconf-statement-max-records-per-type</div><div>The "max-types-per-name" default setting is 100.</div><div>https://downloads.isc.org/isc/bind9/9.18.30/doc/arm/html/reference.html#namedconf-statement-max-types-per-name</div><div><br></div><div>/Peter</div></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Nagesh Thati" <tcpnagesh@gmail.com><br><b>To: </b>"bind-users" <bind-users@lists.isc.org><br><b>Sent: </b>Monday, 23 September, 2024 07:48:32<br><b>Subject: </b>Assistance Needed: "Too Many Records" Error When Reloading Zone `example.com`, BIND: 9.18.29<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div dir="ltr">Hi BIND Community,<br><br>I hope this message finds you well.<br><br>We are encountering an issue with our DNS zone `<a href="http://example.com" target="_blank" rel="nofollow noopener noreferrer">example.com</a>`, which contains approximately 10,000 resource records of various types, including A, CNAME, TXT, and MX records. When attempting to perform an `rndc reload` for this zone, we receive a “too many records” error. Below are the details of the error and relevant log excerpts for your reference:<br><br><b>BIND Version:</b><div>ISC BIND 9.18.29</div><div><br><b>Command Executed:</b><br># rndc reload <a href="http://example.com" target="_blank" rel="nofollow noopener noreferrer">example.com</a><br>rndc: 'reload' failed: too many records<br><br><b>`named.log` Output:</b><br>23-Sep-2024 10:21:04.886 query-errors: info: client @0x7f2f17d25168 127.0.0.1#39206 (<a href="http://example.com" target="_blank" rel="nofollow noopener noreferrer">example.com</a>): query failed (zone not loaded) for <a href="http://example.com/IN/SOA" target="_blank" rel="nofollow noopener noreferrer">example.com/IN/SOA</a> at query.c:5676<br>23-Sep-2024 10:21:20.782 zoneload: error: zone <a href="http://example.com/IN" target="_blank" rel="nofollow noopener noreferrer">example.com/IN</a>: loading from master file /var/named/zones/<a href="http://db.example.com" target="_blank" rel="nofollow noopener noreferrer">db.example.com</a> failed: too many records<br>23-Sep-2024 10:21:20.782 zoneload: error: zone <a href="http://example.com/IN" target="_blank" rel="nofollow noopener noreferrer">example.com/IN</a>: not loaded due to errors.<br><br><b>`general.log` Output:</b><br>23-Sep-2024 10:33:48.625 general: info: received control channel command 'reload <a href="http://example.com" target="_blank" rel="nofollow noopener noreferrer">example.com</a>'<br>23-Sep-2024 10:33:48.625 general: debug 1: zone_startload: zone <a href="http://example.com/IN" target="_blank" rel="nofollow noopener noreferrer">example.com/IN</a>: enter<br>23-Sep-2024 10:33:48.629 general: error: dns_master_load: /var/named/zones/<a href="http://db.example.com:995" target="_blank" rel="nofollow noopener noreferrer">db.example.com:995</a>: <a href="http://text.example.com" target="_blank" rel="nofollow noopener noreferrer">text.example.com</a>: too many records<br><br><b>Zone File Excerpt (Line 995):</b><br>990 <a href="http://text.example.com" target="_blank" rel="nofollow noopener noreferrer">text.example.com</a>. 5000 IN TXT "Example Infrastructure Asset ID: 209 for <a href="http://us-lcm-01.example.com" target="_blank" rel="nofollow noopener noreferrer">us-lcm-01.example.com</a>. created on 2024-05-28"<br>991 <a href="http://text.example.com" target="_blank" rel="nofollow noopener noreferrer">text.example.com</a>. 5000 IN TXT "Example Infrastructure Asset ID: 211 for <a href="http://us-vra.example.com" target="_blank" rel="nofollow noopener noreferrer">us-vra.example.com</a>. created on 2024-05-28"<br>992 <a href="http://text.example.com" target="_blank" rel="nofollow noopener noreferrer">text.example.com</a>. 5000 IN TXT "Example Infrastructure Asset ID: 212 for <a href="http://us-vdm.example.com" target="_blank" rel="nofollow noopener noreferrer">us-vdm.example.com</a>. created on 2024-05-28"<br>993 <a href="http://text.example.com" target="_blank" rel="nofollow noopener noreferrer">text.example.com</a>. 5000 IN TXT "Example Infrastructure Asset ID: 217 for <a href="http://us-twlcm-01.example.com" target="_blank" rel="nofollow noopener noreferrer">us-twlcm-01.example.com</a>. created on 2024-05-28"<br>994 <a href="http://text.example.com" target="_blank" rel="nofollow noopener noreferrer">text.example.com</a>. 5000 IN TXT "Example Infrastructure Asset ID: 220 for <a href="http://us-lcm-02.example.com" target="_blank" rel="nofollow noopener noreferrer">us-lcm-02.example.com</a>. created on 2024-05-29"<br><b>995 <a href="http://text.example.com" target="_blank" rel="nofollow noopener noreferrer">text.example.com</a>. 5000 IN TXT "Example Infrastructure Asset ID: 225 for <a href="http://us-dev-remote-50.example.com" target="_blank" rel="nofollow noopener noreferrer">us-dev-remote-50.example.com</a>. created on 2024-05-29"</b><br>996 <a href="http://text.example.com" target="_blank" rel="nofollow noopener noreferrer">text.example.com</a>. 5000 IN TXT "Example Infrastructure Asset ID: 228 for <a href="http://us-vdm-02.example.com" target="_blank" rel="nofollow noopener noreferrer">us-vdm-02.example.com</a>. created on 2024-05-29"<br>997 <a href="http://text.example.com" target="_blank" rel="nofollow noopener noreferrer">text.example.com</a>. 5000 IN TXT "Example Infrastructure Asset ID: 230 for <a href="http://us-lcm-03.example.com" target="_blank" rel="nofollow noopener noreferrer">us-lcm-03.example.com</a>. created on 2024-05-29"<br>998 <a href="http://text.example.com" target="_blank" rel="nofollow noopener noreferrer">text.example.com</a>. 5000 IN TXT "Example Infrastructure Asset ID: 235 for <a href="http://us-dev-remote-51.example.com" target="_blank" rel="nofollow noopener noreferrer">us-dev-remote-51.example.com</a>. created on 2024-05-29"<br>999 <a href="http://text.example.com" target="_blank" rel="nofollow noopener noreferrer">text.example.com</a>. 5000 IN TXT "Example Infrastructure Asset ID: 240 for <a href="http://us-twlcm-02.example.com" target="_blank" rel="nofollow noopener noreferrer">us-twlcm-02.example.com</a>. created on 2024-05-29"<br><br><b>Issue Summary:</b><br><u>Zone Definition</u>: `<a href="http://example.com" target="_blank" rel="nofollow noopener noreferrer">example.com</a>`<br><u>Number of Records</u>: ~10,000 (A, CNAME, TXT, MX)<br><u>Error Encountered</u>: `rndc: 'reload' failed: too many records`<br><u>Logs Indicate</u>: The zone failed to load due to the excessive number of records, specifically pointing to TXT records at line 995.<br><br><b>Additional Information:</b><br>- Zone File Structure: The zone file contains a high number of TXT records, particularly for infrastructure asset IDs.<br><br><b>Request for Assistance:</b><br>1. <u>Understanding the Limit:</u> Is there a configurable limit in BIND that restricts the number of records per zone? If so, how can we adjust this limit to accommodate our current zone size?<br>2. <u>Optimization Tips:</u> Are there best practices for managing large zones with thousands of records to prevent such issues?<br>3. <u>Error Interpretation:</u> Can the “too many records” error be mitigated by restructuring the zone file or employing specific configurations?<br><br>Any guidance or suggestions to resolve this issue would be greatly appreciated. Thank you in advance for your support.<br><br>Best Regards,<br>Nagesh<br></div></div>
<br>-- <br>Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list<br><br>ISC funds the development of this software with paid support subscriptions. Contact us at https://www.isc.org/contact/ for more information.<br><br><br>bind-users mailing list<br>bind-users@lists.isc.org<br>https://lists.isc.org/mailman/listinfo/bind-users<br></div></div></body></html>