Maximum limit in a NAPTR RR

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Maximum limit in a NAPTR RR

Harshith Mulky
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=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@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:

  1. Is there a limit to the number of characters in a Resource Record?
  2. 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
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users
Reply | Threaded
Open this post in threaded view
|

Re: Maximum limit in a NAPTR RR

Mark Andrews
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 <[hidden email]> 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=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@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
> [hidden email]
> 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: [hidden email]

_______________________________________________
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
[hidden email]
https://lists.isc.org/mailman/listinfo/bind-users