Package: python-dnspython Version: 1.7.1-1 Severity: normal Hello,
With a zonefile with $ORIGIN @ in it, I get: Zone foo.bar.com (file test_data/var/named/internal/foo.bar.com) node name: @ Once I remove the $ORIGIN line, I get: node name: @ node name: foo node name: bar node name: star .... Sample code is: zone = "foo.bar.com" fd = "test_data/var/named/internal/foo.bar.com" print "Zone %s (file %s)" % (zone, fd) zonef = dns.zone.from_file(fd, zone) for name, node in zonef.nodes.items(): print "\tnode name:" % name Please let me know if I'm wrong and just misusing the library, this is the first time I've stumbled on it. I'd expect it to at least throw an exception for out of zone data or something if it can't work out what it's supposed to do. Cheers, -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-4-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.utf8) Shell: /bin/sh linked to /bin/dash Versions of packages python-dnspython depends on: ii python 2.5.4-9 An interactive high-level object-o ii python-central 0.6.16 register and build utility for Pyt python-dnspython recommends no packages. python-dnspython suggests no packages. -- no debconf information -- ----------------------------------------------------------------- | ,''`. Stephen Gran | | : :' : sg...@debian.org | | `. `' Debian user, admin, and developer | | `- http://www.debian.org | -----------------------------------------------------------------
signature.asc
Description: Digital signature