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