Maximum limit in a NAPTR RR
Mark Andrews
marka at isc.org
Wed Mar 31 13:16:51 UTC 2021
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 RR September 2000
where:
FLAGS A <character-string> which contains various flags.
SERVICES A <character-string> which contains protocol and service
identifiers.
REGEXP A <character-string> which contains a regular expression.
REPLACEMENT A <domain-name> which specifies the new value in the
case where the regular expression is a simple replacement
operation.
<character-string> and <domain-name> as used here are defined in
RFC1035 [1].
> On 31 Mar 2021, at 21:53, Harshith Mulky <harshith.mulky at outlook.com> 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 at 154.11.143.16;maddr=\\2.\\3.prim-sc.RL.telus.com;x-nortel-profile=canadian.destinations;lata=0000;tgrp=EGRESS;name=example;place=india;animal=peacock;thing=wheel;test1=AAAA;test2=BBBB;test3=CCCC;test4=DDDD;test5=EEEE;test6=FFFF;test7=GGGG!".
>
> 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 at 154.11.143.16;maddr=\\2.\\3.prim-sc.RL.telus.com;x-nortel-profile=canadian.destinations;lata=0000;tgrp=EGRESS;name=example;place=india;animal=peacock;thing=wheel;test1=AAAA;test2=BBBB;test3=CCCC;test4=DDDD;test5=EEEE;test6=FFFF!";
>
> 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 at 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: marka at isc.org
More information about the bind-users
mailing list