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,