Query the bind server object for its list of zones
This commit is contained in:
parent
546ae82e22
commit
987e1a4d35
|
@ -27,7 +27,8 @@ def list_servers(request):
|
||||||
|
|
||||||
def view_server_zones(request, dns_hostname):
|
def view_server_zones(request, dns_hostname):
|
||||||
""" Display the list of DNS zones a particular DNS host provides. """
|
""" Display the list of DNS zones a particular DNS host provides. """
|
||||||
zone_array = list_server_zones(dns_hostname)
|
this_server = BindServer.objects.get(hostname=dns_hostname)
|
||||||
|
zone_array = this_server.list_zones()
|
||||||
if 'errors' in zone_array:
|
if 'errors' in zone_array:
|
||||||
return render_to_response('bcommon/list_server_zones.htm',
|
return render_to_response('bcommon/list_server_zones.htm',
|
||||||
{ 'errors' : zone_array['errors'],
|
{ 'errors' : zone_array['errors'],
|
||||||
|
|
Loading…
Reference in New Issue