public JSONObject createDomain(
			String mode,
			String domain,
			String group,
			String rname,
			String[] ns,
			String primary_wildcard,
			String primary_wildcard_qtype,
			String default_mx) {
		StringBuilder uriBuilder = new StringBuilder("/api/createDomain/?") ;
		uriBuilder.append("AUTH_TOKEN="+apiToken) ;
		uriBuilder.append("&domain="+domain) ;
		uriBuilder.append("&mode="+mode) ;
		if (group!=null) {
			uriBuilder.append("&group="+group) ;
		}
		if (rname!=null) {
			uriBuilder.append("&rname="+rname) ;
		}
		if (ns!=null) {
			for (int x=0; x<ns.length;x++) {
				uriBuilder.append("&ns="+ns[x]) ;
			}
		}
		if (primary_wildcard!=null) {
			uriBuilder.append("&primary_wildcard="+primary_wildcard) ;
		}
		if (primary_wildcard_qtype!=null) {
			uriBuilder.append("&primary_wildcard_qtype="+primary_wildcard_qtype) ;
		}
		if (default_mx!=null) {
			uriBuilder.append("&default_mx="+default_mx) ;
		}
		return makeHttpRequest(uriBuilder.toString()) ;
	}