Any python libs for parsing Bind zone files?

前端 未结 5 748
鱼传尺愫
鱼传尺愫 2020-12-06 02:54

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 fi

5条回答
  •  遥遥无期
    2020-12-06 03:13

    I know this is old but the only working one I could find is called iscpy. You can do an easy_install.

    easy_install iscpy
    

    Then in python:

    import iscpy
    iscpy.ParseISCString(open('somefile.conf', 'r').read())
    

    Which returns a dictionary.

提交回复
热议问题