[Pdns-users] Unwanted character escaping in regex values

Peter van Dijk peter.van.dijk at powerdns.com
Wed Jul 31 11:12:56 UTC 2019


Hello Kenneth,

On Sat, 2019-07-27 at 21:02 +0000, Kenneth Bengtsson wrote:
> Dear all
>  
> I’m setting up a service that uses NAPTR records for service discovery. Everything looks good in the (MySQL) records but when requesting the resources, PowerDNS escapes the regex group characters (“(“ and “)”) with a backslash character. So for example, a regular expression that looks like “{(*.)}” in the DB record comes back as “{\(*.\)}”.
>  
> I’ve tried different examples, both my own and what I’ve found lying around including on this mailing list, and the result is very consistent. For some reason, PowerDNS insists on escaping the ( and ) characters in the regular expression.

PowerDNS does not that, but a client like 'dig' might do it on output. To make sure what's happening, can you show your data, your output, etc.?

Kind regards,
-- 
Peter van Dijk
PowerDNS.COM BV - https://www.powerdns.com/



More information about the Pdns-users mailing list