예제 #1
0
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)
예제 #2
0
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)
예제 #3
0
def raw(data):
    crypt_request("http://dnspub02.prd.srv.tca.ar.internal:5000/", data,
                  BIND_KEY)
예제 #4
0
def disable_zone(zone):
    data = {'request': 'disable_zone', 'zone': zone}
    return crypt_request("http://dnspub02.prd.srv.tca.ar.internal:5000/", data,
                         BIND_KEY)
예제 #5
0
def show_zones():
    data = {'request': 'show_zones'}
    return crypt_request("http://dnspub02.prd.srv.tca.ar.internal:5000/", data,
                         BIND_KEY)