AXFR out produces STL error for TXT RR #541

Closed
Habbie opened this Issue Apr 26, 2013 · 4 comments

Projects

None yet

1 participant

@Habbie
Member
Habbie commented Apr 26, 2013

Using PowerDNS from git, commit: e8b9982

Outgoing zone transfer dies with the following error logged:

Aug 01 08:18:30 AXFR of domain 'tiny.aa' initiated by 127.0.0.1
Aug 01 08:18:30 AXFR of domain 'tiny.aa' allowed: client IP 127.0.0.1 is in allow-axfr-ips
Aug 01 08:18:30 gmysql Connection successful
Aug 01 08:18:30 gmysql Connection successful
Aug 01 08:18:30 Exception: Unable to parse DNS TXT '"LAND ISLANDS"'
Aug 01 08:18:30 TCP Connection Thread died because of STL error: Unable to parse DNS TXT '"LAND ISLANDS"'

The zone was transferred IN to PowerDNS from BIND 9.9.0-P1 running the attached ''tiny.aa'' master file which passed ''named-checkzone'' without errors. For clarity, the zone contains binary (UTF-8) characters in the TXT RRset as shown from the dig to BIND:


; <<>> DiG 9.9.0 <<>> @127.0.0.3 tiny.aa axfr
; (1 server found)
;; global options: +cmd
tiny.aa.        60  IN  SOA localhost. root.localhost. 2010100300 10800 3600 604800 3600
tiny.aa.        60  IN  NS  localhost.
AX.tiny.aa.     604800  IN  TXT "\195\133LAND ISLANDS"
CI.tiny.aa.     604800  IN  TXT "C\195\148TE D'IVOIRE"
localhost.tiny.aa.  60  IN  A   127.0.0.1
tiny.aa.        60  IN  SOA localhost. root.localhost. 2010100300 10800 3600 604800 3600
;; Query time: 1 msec
;; SERVER: 127.0.0.3#53(127.0.0.3)
;; WHEN: Wed Aug  1 08:12:47 2012
;; XFR size: 6 records (messages 1, bytes 211)


Best regards,

-JP
@Habbie Habbie was assigned Apr 26, 2013
@Habbie Habbie added a commit that closed this issue Apr 26, 2013
@Habbie Habbie escape TXTs when writing them out - half fixes #541
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2993 d19b8d6e-7fed-0310-83ef-9ca221ded41b
5dba9d2
@Habbie Habbie closed this in 5dba9d2 Apr 26, 2013
@Habbie
Member
Habbie commented Apr 26, 2013

Attachment 'Zone master file' (tiny.aa) https://gist.github.com/5466781

@Habbie
Member
Habbie commented Apr 26, 2013

Author: anon
Forgot to mention:

  • DNSSEC enabled on server
  • Zone is NOT signed
  • gmysql back-end
@Habbie
Member
Habbie commented Apr 26, 2013

Author: peter
r2993 makes sure we escape TXTs when writing them out while slaving. This fixes the specific use case reported.

PowerDNS should be able to read files with unescaped 8bit chars in them, however, just like NSD and BIND do. This involves touching Ragel. Leaving ticket open for that and postponing to after 3.2.

@Habbie Habbie reopened this Apr 26, 2013
@mind04 mind04 pushed a commit to mind04/pdns that referenced this issue Apr 26, 2013
peter escape TXTs when writing them out - half fixes #541
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2993 d19b8d6e-7fed-0310-83ef-9ca221ded41b
78e1c53
@Habbie Habbie added a commit that referenced this issue May 17, 2013
@Habbie Habbie failing test for #541 and #723 0b2da21
@Habbie Habbie closed this in 830281f May 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment