sandoche BALAKRICHENAN wrote:
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?
NAPTR might not be the only way to express what you're
trying to do. Without knowing quite what that is [ 8-) ],
I wonder whether you couldn't make do with a simple CNAME?
The right-hand-side provisioning would then repeat part of
the owner-name; this would be ugly, but would probably involve
lighter application processing.
/Niall
_______________________________________________
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users