Hi all,

I am encountered a problem to delete record which have the same name.
For example:
        XXX     1.1.1.1
        XXX     2.2.2.2

When I used:
        zone = dns.zone.from_file( zonefile, zonename )
        for (name, ttl, rdata) in zone.iterate_rdatas('SOA'):
                rdata.serial = rdata.serial + 1
        for rdata in zone.find_rdataset( recordtodelete, recordtype ):
                zone.delete_node(recordtodelete)
                zone.to_file(zonefile)

These two records are deleted. How can I do to delete only the record
with the wanted value?

Best regards,
Michael LINDER.
_______________________________________________
dnspython-users mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo.cgi/dnspython-users

Reply via email to