[Pdns-dev] backslash error in parse DNS TXT on version 3.3.2 Authoritative Server

Giuseppe Cardone g.cardone at unidata.it
Tue May 19 10:01:34 CEST 2015


Thanks Aki, 

I applied your idea and it worked !! 

For anybody else getting stuck with anything similar, I had to escape the backslash 3 times in my sql insert to get the record to look like this: 

100 100 "u" "E2U+sip" "!^3907428(..)$!sip:\\+3907428500\\1 at mytest.com!" 

i.e. my insert looked like this: 

INSERT INTO `records` (domain_id, name, TYPE, content, ttl, prio) VALUES (21, '*.8.2.4.7.0.9.3.e164.arpa', 'NAPTR', '100 100 "u" "E2U+sip" "!^3907428(..)$!sip:\\\\+3907428\\\\1 at mytest.com !\" .', 120, 0); 

Thanks again Aki, my headache has gone ;-) 

Giuseppe 

----- Messaggio originale -----

> Da: "Aki Tuomi" <cmouse at youzen.ext.b2.fi>
> A: "Giuseppe Cardone" <g.cardone at unidata.it>
> Cc: pdns-dev at mailman.powerdns.com
> Inviato: Lunedì, 18 maggio 2015 19:18:26
> Oggetto: Re: [Pdns-dev] backslash error in parse DNS TXT on version
> 3.3.2 Authoritative Server

> On Mon, May 18, 2015 at 07:06:30PM +0200, Giuseppe Cardone wrote:
> > Hi,
> >
> >
> > I'm trying to perfom ENUM lookups but get a failure like the
> > following when the response is meant to include a regular
> > expression which includes a backslash:
> >
> >
> >
> > May 18 18:34:00 localhost pdns[8461]: Exception: Unable to parse
> > DNS TXT '"!^3907428(..)$!sip:+3907428\1 at mytest.com!"'
> > May 18 18:34:00 localhost pdns[8461]: Exception building answer
> > packet (Unable to parse DNS TXT
> > '"!^3907428(..)$!sip:+3907428\1 at mytest.com!"') sending out
> > servfail
> >
> >

> Try \\1

> Aki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-dev/attachments/20150519/9ac6758b/attachment.html>


More information about the Pdns-dev mailing list