Use this API to add dnsnsrec.
775131
public static base_response add(nitro_service client, dnsnsrec resource) throws Exception {
		dnsnsrec addresource = new dnsnsrec();
		addresource.domain = resource.domain;
		addresource.nameserver = resource.nameserver;
		addresource.ttl = resource.ttl;
		return addresource.add_resource(client);
	}
1265518
public static base_response add(nitro_service client, dnsaaaarec resource) throws Exception {
		dnsaaaarec addresource = new dnsaaaarec();
		addresource.hostname = resource.hostname;
		addresource.ipv6address = resource.ipv6address;
		addresource.ttl = resource.ttl;
		return addresource.add_resource(client);
	}
1270313
def add_host(zone, name, ttl, ip, nameserver='127.0.0.1', replace=True,
             timeout=5, port=53, **kwargs):
    '''
    
    '''
    res = update(zone, name, ttl, 'A', ip, nameserver, timeout, replace, port,
                 **kwargs)
    if res is False:
        return False

    fqdn = '{0}.{1}.'.format(name, zone)
    parts = ip.split('.')[::-1]
    popped = []

    # Iterate over possible reverse zones
    while len(parts) > 1:
        p = parts.pop(0)
        popped.append(p)
        zone = '{0}.{1}'.format('.'.join(parts), 'in-addr.arpa.')
        name = '.'.join(popped)
        ptr = update(zone, name, ttl, 'PTR', fqdn, nameserver, timeout,
                     replace, port, **kwargs)
        if ptr:
            return True
    return res
143865
public static base_responses add(nitro_service client, dnssrvrec resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			dnssrvrec addresources[] = new dnssrvrec[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new dnssrvrec();
				addresources[i].domain = resources[i].domain;
				addresources[i].target = resources[i].target;
				addresources[i].priority = resources[i].priority;
				addresources[i].weight = resources[i].weight;
				addresources[i].port = resources[i].port;
				addresources[i].ttl = resources[i].ttl;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
41785
public static base_response add(nitro_service client, dnssoarec resource) throws Exception {
		dnssoarec addresource = new dnssoarec();
		addresource.domain = resource.domain;
		addresource.originserver = resource.originserver;
		addresource.contact = resource.contact;
		addresource.serial = resource.serial;
		addresource.refresh = resource.refresh;
		addresource.retry = resource.retry;
		addresource.expire = resource.expire;
		addresource.minimum = resource.minimum;
		addresource.ttl = resource.ttl;
		return addresource.add_resource(client);
	}
533509
public static base_response add(nitro_service client, dnsaddrec resource) throws Exception {
		dnsaddrec addresource = new dnsaddrec();
		addresource.hostname = resource.hostname;
		addresource.ipaddress = resource.ipaddress;
		addresource.ttl = resource.ttl;
		return addresource.add_resource(client);
	}
1148342
def dnsdumpster(domain, output_dir):
    """"""
    response = requests.Session().get('https://dnsdumpster.com/').text
    csrf_token = re.search(
        r"name='csrfmiddlewaretoken' value='(.*?)'", response).group(1)

    cookies = {'csrftoken': csrf_token}
    headers = {'Referer': 'https://dnsdumpster.com/'}
    data = {'csrfmiddlewaretoken': csrf_token, 'targetip': domain}
    response = requests.Session().post(
        'https://dnsdumpster.com/', cookies=cookies, data=data, headers=headers)

    image = requests.get('https://dnsdumpster.com/static/map/%s.png' % domain)
    if image.status_code == 200:
        with open('%s/%s.png' % (output_dir, domain), 'wb') as f:
            f.write(image.content)
804424
public static dnscnamerec[] get(nitro_service service, dnscnamerec_args args) throws Exception{
		dnscnamerec obj = new dnscnamerec();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		dnscnamerec[] response = (dnscnamerec[])obj.get_resources(service, option);
		return response;
	}
995638
public static dnsmxrec[] get(nitro_service service, options option) throws Exception{
		dnsmxrec obj = new dnsmxrec();
		dnsmxrec[] response = (dnsmxrec[])obj.get_resources(service,option);
		return response;
	}
804639
def addSSLService(self):
        ""
        https_port = self.options['https_port']
        self.tls_service = HendrixTCPServiceWithTLS(https_port, self.hendrix.site, self.key, self.cert,
                                                    self.context_factory, self.context_factory_kwargs)
        self.tls_service.setServiceParent(self.hendrix)
733773
public static dnscnamerec get(nitro_service service, String aliasname) throws Exception{
		dnscnamerec obj = new dnscnamerec();
		obj.set_aliasname(aliasname);
		dnscnamerec response = (dnscnamerec) obj.get_resource(service);
		return response;
	}
1064311
def _request_modify_dns_record(self, record):
        """"""
        return self._request_internal("Modify_DNS_Record",
                                      domain=self.domain,
                                      record=record)
820845
public static base_response delete(nitro_service client, dnsnsrec resource) throws Exception {
		dnsnsrec deleteresource = new dnsnsrec();
		deleteresource.domain = resource.domain;
		deleteresource.nameserver = resource.nameserver;
		return deleteresource.delete_resource(client);
	}
628546
def add_record(cls, fqdn, name, type, value, ttl):
        """"""
        data = {
            "rrset_name": name,
            "rrset_type": type,
            "rrset_values": value,
        }
        if ttl:
            data['rrset_ttl'] = int(ttl)
        meta = cls.get_fqdn_info(fqdn)
        url = meta['domain_records_href']
        return cls.json_post(url, data=json.dumps(data))
403076
def add_ref(self, ref):
        

        self.refs[ref.insn_addr].append(ref)
        self.data_addr_to_ref[ref.memory_data.addr].append(ref)
459466
public static dnssuffix get(nitro_service service, String Dnssuffix) throws Exception{
		dnssuffix obj = new dnssuffix();
		obj.set_Dnssuffix(Dnssuffix);
		dnssuffix response = (dnssuffix) obj.get_resource(service);
		return response;
	}
322932
public static base_response add(nitro_service client, dnsaction64 resource) throws Exception {
		dnsaction64 addresource = new dnsaction64();
		addresource.actionname = resource.actionname;
		addresource.prefix = resource.prefix;
		addresource.mappedrule = resource.mappedrule;
		addresource.excluderule = resource.excluderule;
		return addresource.add_resource(client);
	}