public DNSResourceRecord[] getResourceRecords(
			final String name,
			final String type,
			final String data) throws APIException{
		try{
			final String url = getURL("listRRs");
			final HTTPConnection conn = new HTTPConnection(url, RequestMethod.POST, generator);
			
			if(name != null){
				conn.addFormField("name", name);
			}
			if(type != null && !"".equals(type)){
				conn.addFormField("type", type);
			}
			if(data != null && !"".equals(data)){
				conn.addFormField("data", data);
			}
			
			final String value = NetUtils.consumeAll(conn.getDataStream());
			LOG.debug("JSON: " + value);
			
			final JSONArray arr = new JSONArray(value);
			final LinkedList<DNSResourceRecord> rrs = new LinkedList<>();
			for(int i = 0; i < arr.length(); ++i){
				rrs.add(DNSResourceRecord.fromJSONObject(arr.getJSONObject(i)));
			}
			
			return rrs.toArray(new DNSResourceRecord[rrs.size()]);
		}catch(IOException e){
			LOG.error(e);
		} catch (JSONException e) {
			LOG.error(e);
		}
		return null;
	}