#!/usr/bin/python
# -*- coding:utf-8 -*-
# Powered By KK Studio

class rndc:

    def __init__(self,host,port,algo,secret):
        try:
            from isc.rndc import rndc as isc_rndc
        except:
            print 'Not Found ISC Module'
            isc_rndc = None
        self.rndc = isc_rndc((host,int(port)),algo,secret)
        self.call = self.rndc.call

    def get_status(self):
        _st = self.call('status')
        status = _st['text'].split('\n')
        return status



if __name__ == '__main__':
    host = '127.0.0.1'
    port = 953
    algo = 'md5'
    secret = 'kzIcztY4+xH0Px2SrsZyGQ=='
    r = rndc(host,port,algo,secret)
    print r.get_status()

@@ -477,21 +477,583 @@
 return s
-tatus
+elf.parse_status(status)%0A%0A    def parse_status(self,status):%0A        data = %7B'version':'','uptime':'','running':'Unknown'%7D%0A        for i in status:%0A            i = str(i)%0A            if 'version:' in i:%0A                data%5B'version'%5D = i.split('version: ')%5B1%5D%0A            elif 'boot time: ' in i:%0A                data%5B'uptime'%5D = i.split('boot time: ')%5B1%5D%0A            elif 'boot time: ' in i:%0A                data%5B'uptime'%5D = i.split('boot time: ')%5B1%5D%0A            elif i == 'server is up and running':%0A                data%5B'running'%5D = 'Running'%0A        return data%0A
 %0A%0A%0A%0Aif _

Add parse_status function