maik at zumstrull.net
Tue Apr 26 18:57:25 CEST 2011
On Tue, Apr 26, 2011 at 18:45, James Cloos <cloos at jhcloos.com> wrote:
> I tried out a naptr again.
> insert into records (domain_id, name, type, content)
> values ( 1, '4.3.example.com', 'NAPTR', $C$100 10 "u" "E2U+sip" !^\+*([^\*]*)!sip:\1 at example.com!$C$);
I've never tried NAPTR records, but my immediate thought on this is,
shouldn't those be double backslashes in the regex part? One layer of
escaping because it follows the zone file rules for TXT-like record
parts, one layer on the regex level?
> The regexp is from an existing, valid NAPTR in current production use,
> with only the domain changed to example.com.
Have you checked how dig serializes the record to text and put exactly
that into the table column?
More information about the Pdns-dev