Just wanted to confirm that this is spot on -- I ran into this same thing a few weeks back and had to do the same head scratching, RFC look-up, google, etc.
--Augie On Mon, Mar 1, 2010 at 11:25 AM, Julian Mehnle <jul...@mehnle.net> wrote: > Leen Besselink wrote: > >> You can also see that here: >> >> http://doc.powerdns.com/changelog.html >> >> I'm unsure about what it does mean though. >> >> My first thought would be that it's code to split large TXT-records >> over different TXT-records. >> >> Or just that multi TXT-records didn't work at all, a bug, as mentioned >> in the log. > > I think pre-2.9.21, multi-"part" TXT records didn't work at all. > > Actually, RFC 1035 defines a TXT RR to be composed of "One or more > <character-string>s" (not "parts", and a <character-string> as: > > "a single length octet followed by that number of characters. > <character-string> is treated as binary information, and can be up > to 256 characters in length (including the length octet)". > > Thus the rationale for having more than one (character) strings in a > single TXT RR is to build a TXT RR that is longer than 255 characters. > > The way TXT RRs work in the PowerDNS authoritative server is that each of > a TXT RR's strings must be enclosed in double quotes, even if the TXT RR > consists of only a single string. > > E.g.: > > "foo bar quux" (single string) > > "foo " "bar " "quux" (three strings) > > Those values still need to be quoted when specified in an SQL command. > E.g.: > > INSERT INTO dns_records (name, rrtype, content) VALUES ( > 'txt.example.com', 'TXT', '"foo bar quux") > > INSERT INTO dns_records (name, rrtype, content) VALUES ( > 'txt.example.com', 'TXT', '"foo " "bar " "quux"') > > -Julian > > _______________________________________________ > Pdns-users mailing list > Pdns-users@mailman.powerdns.com > http://mailman.powerdns.com/mailman/listinfo/pdns-users > > -- Augie Schwer - au...@schwer.us - http://schwer.us Key fingerprint = 9815 AE19 AFD1 1FE7 5DEE 2AC3 CB99 2784 27B0 C072 _______________________________________________ Pdns-users mailing list Pdns-users@mailman.powerdns.com http://mailman.powerdns.com/mailman/listinfo/pdns-users