backslash error in parse DNS TXT on version 3.3.2 Authoritative Server

Giuseppe Cardone <[email protected]> Mon, 18 May 2015 19:06:30 +0200 (CEST)
Newsgroups gmane.network.dns.powerdns.devel
Message-ID <[email protected]>
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 


The content field for the corresponding mysql record looks ok to me: 


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




Also,as a test, replacing the \1 with a fixed number, ie. changing the content field in the mysql db to : 


100 100 "u" "E2U+sip" "!^3907428(..)$!sip:+390742822@ mytest.com !" . 


makes the error go away. 


I'm running a pdns authoritative server version 3.3.2 with a mysql backend and judging by https://github.com/PowerDNS/pdns/commit/3526186 
the backslash problems with the parser are meant to have been solved. 


Any ideas as to whether this is probably a bug or whether there may be a way to address the issue ? 


Thanks, 



Giuseppe

_______________________________________________
Pdns-dev mailing list
[email protected]
http://mailman.powerdns.com/mailman/listinfo/pdns-dev