The flags, services and regexp are each limited to 255 characters.
https://tools.ietf.org/html/rfc2915
8. DNS Packet Format
The packet format for the NAPTR record is:
1 1 1 1 1 1
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| ORDER |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
| PREFERENCE |
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ FLAGS /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ SERVICES/
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/REGEXP /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ REPLACEMENT /
/ /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
Mealling & Daniel Standards Track[Page 13]
RFC 2915 NAPTR DNS RRSeptember 2000
where:
FLAGS A which contains various flags.
SERVICES A which contains protocol and service
identifiers.
REGEXP A which contains a regular expression.
REPLACEMENT A which specifies the new value in the
case where the regular expression is a simple replacement
operation.
and as used here are defined in
RFC1035 [1].
> On 31 Mar 2021, at 21:53, Harshith Mulky wrote:
>
> Hello Experts,
>
> Need a help,
> How do I know what is the maximum limit in a NAPTR RR which I am trying to
> configure?
>
> If I configure as below
>
> 5.4.7.7.7.0.1.telus.com. IN NAPTR 8 0 "u" "sip+E2U"
> "!^(.*)()(..)$!sip:\\1@154.11.143.16;maddr=\\2.\\3.prim-sc.RL.telus.com;x-nortel-profile=canadian.destinations;lata=;tgrp=EGRESS;name=example;place=india;animal=peacock;thing=wheel;test1=;test2=;test3=;test4=;test5=;test6=;test7=!".
>
> I am getting Error as below:
> # named-checkzone telus.com telus.zone
> dns_rdata_fromtext: telus.zone:35: syntax error
> zone telus.com/IN: loading from master file telus.zone failed: syntax error
> zone telus.com/IN: not loaded due to errors.
>
> But if I have a reduced response removing few lines/characters as below
> 5.4.7.7.7.0.1.telus.com. IN NAPTR 8 0 "u" "sip+E2U"
> "!^(.*)()(..)$!sip:\\1@154.11.143.16;maddr=\\2.\\3.prim-sc.RL.telus.com;x-nortel-profile=canadian.destinations;lata=;tgrp=EGRESS;name=example;place=india;animal=peacock;thing=wheel;test1=;test2=;test3=;test4=;test5=;test6=!";
>
> I have no issues with loading the Zone file
> # named-checkzone telus.com telus.zone
> zone telus.com/IN: loaded serial 2021033103
> OK
>
> My question:
>
> • Is there a limit to the number of characters in a Resource Record?
> • If yes, is there a possibility to increase this limit in the RR?
> Thanks in Advance
> Harshith
> ___
> Please 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@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: ma...@isc.org
___
Please 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@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users