Re: backslash error in parse DNS TXT on version 3.3.2 Authoritative Server
Giuseppe Cardone <[email protected]> Tue, 19 May 2015 10:01:34 +0200 (CEST)
| Newsgroups | gmane.network.dns.powerdns.devel |
|---|---|
| Message-ID | <[email protected]> |
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\\[email protected]!" 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\\\\[email protected] !\" .', 120, 0); Thanks again Aki, my headache has gone ;-) Giuseppe ----- Messaggio originale ----- > Da: "Aki Tuomi" <[email protected]> > A: "Giuseppe Cardone" <[email protected]> > Cc: [email protected] > 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\[email protected]!"' > > May 18 18:34:00 localhost pdns[8461]: Exception building answer > > packet (Unable to parse DNS TXT > > '"!^3907428(..)$!sip:+3907428\[email protected]!"') sending out > > servfail > > > > > Try \\1 > Aki _______________________________________________ Pdns-dev mailing list [email protected] http://mailman.powerdns.com/mailman/listinfo/pdns-dev