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...@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...@mytest.com !\" .', 120, 0); 

Thanks again Aki, my headache has gone ;-) 

Giuseppe 

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

> Da: "Aki Tuomi" <cmo...@youzen.ext.b2.fi>
> A: "Giuseppe Cardone" <g.card...@unidata.it>
> Cc: pdns-dev@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...@mytest.com!"'
> > May 18 18:34:00 localhost pdns[8461]: Exception building answer
> > packet (Unable to parse DNS TXT
> > '"!^3907428(..)$!sip:+3907428\1...@mytest.com!"') sending out
> > servfail
> >
> >

> Try \\1

> Aki
_______________________________________________
Pdns-dev mailing list
Pdns-dev@mailman.powerdns.com
http://mailman.powerdns.com/mailman/listinfo/pdns-dev

Reply via email to