Hello, I'm responsible for the rDNS for 213.219.2.0/24, which my upstream provider has delegated to me using 0/24.2.219.213.in-addr.arpa. I therefore have this zone:
> ; 213.219.2.0/24 rDNS > > $ORIGIN 0/24.2.219.213.in-addr.arpa. > $TTL 24h > > @ IN SOA ns1.linode.com. dns.linode.com. 2010062376 2h 1h 1w 24h > IN NS ns1.linode.com. > IN NS ns2.linode.com. > IN NS ns3.linode.com. > IN NS ns4.linode.com. > IN NS ns5.linode.com. > > ; (some static entries) > > $INCLUDE "dynamic/0_24.2.219.213.in-addr.arpa" Part of my generation script is to bump the SOA timestamp in these zone files, without rewriting them using DNSPython (maintain formatting, comments, and so forth). However, dns.zone.from_file chokes on this zone and complains: > Traceback (most recent call last): > File "/opt/ingen/ingen", line 17, in <module> > ret = infragen.main(path, len(sys.argv), sys.argv) > File "/opt/ingen/InfraGen/infragen.py", line 128, in main > mod.execute(config) > File "/opt/ingen/InfraGen/reverse.py", line 26, in execute > stub(config, cidr, rangeID, zone) > File "/opt/ingen/InfraGen/reverse.py", line 77, in stub > misc.bump_serial(escaped) > File "/opt/ingen/InfraGen/misc.py", line 25, in bump_serial > z = dns.zone.from_file(filename, filename + ".") > File "/usr/lib/python2.6/dist-packages/dns/zone.py", line 826, in from_file > filename, allow_include, check_origin) > File "/usr/lib/python2.6/dist-packages/dns/zone.py", line 773, in from_text > reader.read() > File "/usr/lib/python2.6/dist-packages/dns/zone.py", line 731, in read > self.zone.check_origin() > File "/usr/lib/python2.6/dist-packages/dns/zone.py", line 520, in > check_origin > raise NoSOA > dns.zone.NoSOA I can definitely see a SOA record, and named-checkzone considers the zone OK. Is there a way to get DNSPython to accept the $ORIGIN containing '/' as BIND does, without it complaining about a missing SOA? Thanks in advance, Jed Smith Systems Administrator/Developer Linode, LLC [email protected] [email protected] _______________________________________________ dnspython-users mailing list [email protected] http://howl.play-bow.org/mailman/listinfo.cgi/dnspython-users
