Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any python libs for parsing Bind zone files?

Tags:

python

bind

Any python libs for parsing Bind zone files? Basically something that will aid in adding/removing zones and records. This needs to work even if someone modifies the zone file by hand so overwriting the zone files every time is not a solution.

like image 548
daniels Avatar asked Oct 25 '08 19:10

daniels


2 Answers

easyzone is a nice layer over dnspython

Zoner provides a web-interface for editing zone files and makes use of easyzone.

like image 191
Boden Garman Avatar answered Nov 17 '22 22:11

Boden Garman


I was unable to use bicop for classical zone files like these:

    $TTL 86400
@   IN SOA ns1.first-ns.de. postmaster.robot.first-ns.de. (
    2006040800   ; serial
    14400        ; refresh
    1800         ; retry
    604800       ; expire
    86400 )      ; minimum

@

                    IN NS      ns1.first-ns.de.

I will have a look at dnspython

like image 28
NorbertK Avatar answered Nov 17 '22 22:11

NorbertK