Regexp issue in NAPTR rewrite

sandoche BALAKRICHENAN sandoche.balakrichenan at afnic.fr
Tue May 12 09:04:28 UTC 2009


I want to rewrite a query of the form 
"sgtin.5.4.0.0.0.1.3.2.4.5.6.7.6.id.onsam.test" to 
"sgtin.5.4.0.0.0.1.3.2.4.5.6.7.6.id.onseu.test" using NAPTR rewrite.

The NAPTR RR in the zone config is as follows:

sgtin.5.4.0.0.0.1.3.2.4.5.6.7.6.id.onsam.test        IN     NAPTR    
0    0    "r"    ""      "!^sgtin\.([0-9])$!\1.id.onseu.test!"    .

BIND does not  accept backref "\1" . It shows a syntax error.

Is the above regexp correct?






-------------- next part --------------
A non-text attachment was scrubbed...
Name: sandoche_balakrichenan.vcf
Type: text/x-vcard
Size: 230 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20090512/c53703fd/attachment.vcf>


More information about the bind-users mailing list