Public bug reported:

Binary package hint: pdns

I'm testing PowerDNS as a secondary DNS for my domain.  I'm configuring
it with this in /etc/powerdns/named.conf:

zone "josefsson.org" {                                                          
                                                  
     type slave;
     file "/var/cache/powerdns/josefsson.org.bak";
     masters { 213.115.69.130; };
};                                                                              
                                                  

Starting PowerDNS results in this in syslog:

Jan 23 15:40:35 kil pdns[13915]: [bindbackend] error at Sun Jan 23 15:40:35 
2011 parsing 'josefsson.org' from file '/var/cache/powerdns/josefsson.org.bak': 
Unable to open file '/var/cache/powerdns/josefsson.org.bak': No such file or 
directory
Jan 23 15:40:36 kil pdns[13915]: Initiating transfer of 'josefsson.org' from 
remote '213.115.69.130'
Jan 23 15:40:36 kil pdns[13915]: AXFR started for 'josefsson.org', transaction 
started
Jan 23 15:40:36 kil pdns[13915]: AXFR done for 'josefsson.org', zone committed

Querying for a domain in that zone results in SERVFAIL and the log gets
this:

root@kil:/etc/powerdns# Jan 23 15:40:50 kil pdns[13915]: Database module
reported condition which prevented lookup (Zone for 'josefsson.org' in
'/var/cache/powerdns/josefsson.org.bak' temporarily not available (file
missing, or master dead)) sending out servfail

Sometime later I get:

Jan 23 15:41:36 kil pdns[13915]: 1 slave domain needs checking
Jan 23 15:41:37 kil pdns[13915]: Domain josefsson.org is stale, master serial 
2011012104, our serial 0
Jan 23 15:41:37 kil pdns[13915]: Initiating transfer of 'josefsson.org' from 
remote '213.115.69.130'
Jan 23 15:41:37 kil pdns[13915]: AXFR started for 'josefsson.org', transaction 
started
Jan 23 15:41:37 kil pdns[13915]: AXFR done for 'josefsson.org', zone committed

And it continues and downloads the zone every minute or so.

Restarting PowerDNS results in a somewhat better log message:

Jan 23 15:43:02 kil pdns[13944]: [bindbackend] error at Sun Jan 23
15:43:02 2011 parsing 'josefsson.org' from file
'/var/cache/powerdns/josefsson.org.bak': Parsing zone content on line 33
of file '/var/cache/powerdns/josefsson.org.bak': 'bar' doesn't look like
a qtype, stopping loop

Line 33 is this one:

foo bar 14400   TXT     "Med space"

This indicates that whatever code did the zone transfer forgot to escape
the " " (SPC) as "\ " (backslash SPC).  This is a bug, pdns needs to
handle domains with space in them.

The zone has this record:

root@kil:~# dig foo\ bar.josefsson.org txt

; <<>> DiG 9.7.0-P1 <<>> foo bar.josefsson.org txt
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58958
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;foo\032bar.josefsson.org.      IN      TXT

;; ANSWER SECTION:
foo\032bar.josefsson.org. 14343 IN      TXT     "Med space"

;; AUTHORITY SECTION:
josefsson.org.          14343   IN      NS      yxa-vi.extundo.com.
josefsson.org.          14343   IN      NS      kniv.josefsson.org.

;; ADDITIONAL SECTION:
kniv.josefsson.org.     14343   IN      A       94.247.169.136
kniv.josefsson.org.     14343   IN      AAAA    2a02:750:5::136

;; Query time: 0 msec
;; SERVER: 207.192.69.5#53(207.192.69.5)
;; WHEN: Sun Jan 23 15:44:55 2011
;; MSG SIZE  rcvd: 156

root@kil:~#

/Simon

** Affects: pdns (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/706611

Title:
  cannot handle space in domainname as slave DNS

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to