code: public static dnspolicy[] get(nitro_service service) throws Exception{
  		dnspolicy obj = new dnspolicy();
  		dnspolicy[] response = (dnspolicy[])obj.get_resources(service);
  		return response;
  	}
docs: Use this API to fetch all the dnspolicy resources that are configured on netscaler.