[Pdns-users] pdns-server, DNS-SD and \032 in record labels

Andy Smith andy at strugglers.net
Sat Mar 19 05:00:25 UTC 2011


Hi Bert,

Thanks for getting back to me so quickly.

On Fri, Mar 18, 2011 at 10:36:57PM +0100, bert hubert wrote:
> On Fri, Mar 18, 2011 at 09:33:39PM +0000, Andy Smith wrote:
> > So it seems to me that there are multiple places here that can't
> > handle "\032" in a query name or in a record label. Just changing
> > backend is not going to get this working for me, right?

> Can you try to reproduce the issue with the 3.0 snapshots available linked
> from http://powerdnssec.org?

I installed pdns-3.0-pre.20110318.2073 from source and converted
from sqlitebackend to sqlite3backend. I'm afraid it shows exactly
the same behaviour.

That is, records are inserted in sqlite3 like this:

345324|373|foo wiki._http._tcp.example.com|SRV|0 80 bar.example.com.|120|0|||

and querying for them results in this being logged:

Received a malformed qdomain from 2001:7b8:2ff:9c::2, 'foo wiki._http._tcp.example.com': sending servfail

Also as a separate issue, sqlite escaping is still not being done
correctly, as per
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=590285

(Short story is that sqlite does not escape anything except "'",
which it escapes with another "'", not "\".)

Cheers,
Andy



More information about the Pdns-users mailing list