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