Use this API to fetch dnsnsecrec resource of given name .
321528
public static dnsnsecrec get(nitro_service service, String hostname) throws Exception{
		dnsnsecrec obj = new dnsnsecrec();
		obj.set_hostname(hostname);
		dnsnsecrec response = (dnsnsecrec) obj.get_resource(service);
		return response;
	}
207123
def _dns_lookup(name, rdtype, nameservers=None):
        
        rrset = dns.rrset.from_text(name, 0, 1, rdtype)
        try:
            resolver = dns.resolver.Resolver()
            resolver.lifetime = 1
            if nameservers:
                resolver.nameservers = nameservers
            rrset = resolver.query(name, rdtype)
            for rdata in rrset:
                LOGGER.debug('DNS Lookup => %s %s %s %s',
                             rrset.name.to_text(), dns.rdataclass.to_text(rrset.rdclass),
                             dns.rdatatype.to_text(rrset.rdtype), rdata.to_text())
        except dns.exception.DNSException as error:
            LOGGER.debug('DNS Lookup => %s', error)
        return rrset
750098
public static dnspolicy64 get(nitro_service service, String name) throws Exception{
		dnspolicy64 obj = new dnspolicy64();
		obj.set_name(name);
		dnspolicy64 response = (dnspolicy64) obj.get_resource(service);
		return response;
	}
722176
public static dnspolicylabel get(nitro_service service, String labelname) throws Exception{
		dnspolicylabel obj = new dnspolicylabel();
		obj.set_labelname(labelname);
		dnspolicylabel response = (dnspolicylabel) obj.get_resource(service);
		return response;
	}
569252
public static inat get(nitro_service service, String name) throws Exception{
		inat obj = new inat();
		obj.set_name(name);
		inat response = (inat) obj.get_resource(service);
		return response;
	}
1260712
public static vpnsessionpolicy get(nitro_service service, String name) throws Exception{
		vpnsessionpolicy obj = new vpnsessionpolicy();
		obj.set_name(name);
		vpnsessionpolicy response = (vpnsessionpolicy) obj.get_resource(service);
		return response;
	}
314648
public static dnssoarec[] get(nitro_service service, dnssoarec_args args) throws Exception{
		dnssoarec obj = new dnssoarec();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		dnssoarec[] response = (dnssoarec[])obj.get_resources(service, option);
		return response;
	}
663006
public static dnspolicy get(nitro_service service, String name) throws Exception{
		dnspolicy obj = new dnspolicy();
		obj.set_name(name);
		dnspolicy response = (dnspolicy) obj.get_resource(service);
		return response;
	}
373725
public static dnsnsecrec[] get(nitro_service service, dnsnsecrec_args args) throws Exception{
		dnsnsecrec obj = new dnsnsecrec();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		dnsnsecrec[] response = (dnsnsecrec[])obj.get_resources(service, option);
		return response;
	}
188419
public static dnssrvrec[] get(nitro_service service) throws Exception{
		dnssrvrec obj = new dnssrvrec();
		dnssrvrec[] response = (dnssrvrec[])obj.get_resources(service);
		return response;
	}
306139
public static dnspolicy64_binding get(nitro_service service, String name) throws Exception{
		dnspolicy64_binding obj = new dnspolicy64_binding();
		obj.set_name(name);
		dnspolicy64_binding response = (dnspolicy64_binding) obj.get_resource(service);
		return response;
	}
378707
public static dnsglobal_dnspolicy_binding[] get(nitro_service service) throws Exception{
		dnsglobal_dnspolicy_binding obj = new dnsglobal_dnspolicy_binding();
		dnsglobal_dnspolicy_binding response[] = (dnsglobal_dnspolicy_binding[]) obj.get_resources(service);
		return response;
	}
519492
public static dnsaction get(nitro_service service, String actionname) throws Exception{
		dnsaction obj = new dnsaction();
		obj.set_actionname(actionname);
		dnsaction response = (dnsaction) obj.get_resource(service);
		return response;
	}
369055
public static dnsaction[] get(nitro_service service) throws Exception{
		dnsaction obj = new dnsaction();
		dnsaction[] response = (dnsaction[])obj.get_resources(service);
		return response;
	}
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;
	}
706580
public static dnsptrrec[] get(nitro_service service, String reversedomain[]) throws Exception{
		if (reversedomain !=null && reversedomain.length>0) {
			dnsptrrec response[] = new dnsptrrec[reversedomain.length];
			dnsptrrec obj[] = new dnsptrrec[reversedomain.length];
			for (int i=0;i<reversedomain.length;i++) {
				obj[i] = new dnsptrrec();
				obj[i].set_reversedomain(reversedomain[i]);
				response[i] = (dnsptrrec) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
904162
public static dnspolicy_binding get(nitro_service service, String name) throws Exception{
		dnspolicy_binding obj = new dnspolicy_binding();
		obj.set_name(name);
		dnspolicy_binding response = (dnspolicy_binding) obj.get_resource(service);
		return response;
	}