def add_zone(zone, master, master_host): data = { 'request': 'add_zone', 'master': master, 'zone': zone, 'master_host': master_host } return crypt_request("http://dnspub02.prd.srv.tca.ar.internal:5000/", data, BIND_KEY)
def update_zone(zone, action, record, record_type, record_value, ttl, zviews): data = { 'request': 'update_zone', 'zone': zone, 'action': action, 'record': record, 'record_type': record_type, 'record_value': record_value, 'ttl': ttl, 'view': zviews } return crypt_request("http://dnspub02.prd.srv.tca.ar.internal:5000/", data, BIND_KEY)
def raw(data): crypt_request("http://dnspub02.prd.srv.tca.ar.internal:5000/", data, BIND_KEY)
def disable_zone(zone): data = {'request': 'disable_zone', 'zone': zone} return crypt_request("http://dnspub02.prd.srv.tca.ar.internal:5000/", data, BIND_KEY)
def show_zones(): data = {'request': 'show_zones'} return crypt_request("http://dnspub02.prd.srv.tca.ar.internal:5000/", data, BIND_KEY)