Use this API to fetch all the dnssrvrec resources that are configured on netscaler.
188419
public static dnssrvrec[] get(nitro_service service) throws Exception{
		dnssrvrec obj = new dnssrvrec();
		dnssrvrec[] response = (dnssrvrec[])obj.get_resources(service);
		return response;
	}
486048
def getservers(self, vhost = None):
        '''
        
        '''
        if vhost is not None:
            return [s for s in self.connections if s.protocol.vhost == vhost]
        else:
            return list(self.connections)
1241725
public static nspbr[] get(nitro_service service) throws Exception{
		nspbr obj = new nspbr();
		nspbr[] response = (nspbr[])obj.get_resources(service);
		return response;
	}
6100
public static dnssuffix[] get(nitro_service service, String Dnssuffix[]) throws Exception{
		if (Dnssuffix !=null && Dnssuffix.length>0) {
			dnssuffix response[] = new dnssuffix[Dnssuffix.length];
			dnssuffix obj[] = new dnssuffix[Dnssuffix.length];
			for (int i=0;i<Dnssuffix.length;i++) {
				obj[i] = new dnssuffix();
				obj[i].set_Dnssuffix(Dnssuffix[i]);
				response[i] = (dnssuffix) obj[i].get_resource(service);
			}
			return response;
		}
		return null;
	}
837233
public static dnssoarec[] get(nitro_service service) throws Exception{
		dnssoarec obj = new dnssoarec();
		dnssoarec[] response = (dnssoarec[])obj.get_resources(service);
		return response;
	}
653961
public static dnssoarec[] get_filtered(nitro_service service, String filter) throws Exception{
		dnssoarec obj = new dnssoarec();
		options option = new options();
		option.set_filter(filter);
		dnssoarec[] response = (dnssoarec[]) obj.getfiltered(service, option);
		return response;
	}
1355933
public static dnsnsecrec[] get(nitro_service service) throws Exception{
		dnsnsecrec obj = new dnsnsecrec();
		dnsnsecrec[] response = (dnsnsecrec[])obj.get_resources(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;
	}
199047
def list_vpnservices(self, retrieve_all=True, **kwargs):
        '''
        
        '''
        return self.network_conn.list_vpnservices(retrieve_all, **kwargs)
201517
def get_dns_servers(interface='Local Area Connection'):
    '''
    
    '''
    # remove any escape characters
    interface = interface.split('\\')
    interface = ''.join(interface)

    with salt.utils.winapi.Com():
        c = wmi.WMI()
        for iface in c.Win32_NetworkAdapter(NetEnabled=True):
            if interface == iface.NetConnectionID:
                iface_config = c.Win32_NetworkAdapterConfiguration(Index=iface.Index).pop()
                try:
                    return list(iface_config.DNSServerSearchOrder)
                except TypeError:
                    return []
    log.debug('Interface "%s" not found', interface)
    return False
1105358
public static dnsaddrec[] get(nitro_service service, dnsaddrec_args args) throws Exception{
		dnsaddrec obj = new dnsaddrec();
		options option = new options();
		option.set_args(nitro_util.object_to_string_withoutquotes(args));
		dnsaddrec[] response = (dnsaddrec[])obj.get_resources(service, option);
		return response;
	}
53966
public static dnszone_domain_binding[] get(nitro_service service, String zonename) throws Exception{
		dnszone_domain_binding obj = new dnszone_domain_binding();
		obj.set_zonename(zonename);
		dnszone_domain_binding response[] = (dnszone_domain_binding[]) obj.get_resources(service);
		return response;
	}
974812
public static dnsnameserver[] get_filtered(nitro_service service, String filter) throws Exception{
		dnsnameserver obj = new dnsnameserver();
		options option = new options();
		option.set_filter(filter);
		dnsnameserver[] response = (dnsnameserver[]) obj.getfiltered(service, option);
		return response;
	}
220606
async def get_dnssec_validation(cls) -> DNSSEC:
        
        data = await cls.get_config("dnssec_validation")
        return cls.DNSSEC.lookup(data)
721158
def get_servers(self):
        
        json_scheme = self.gen_def_json_scheme('GetServers')
        json_obj = self.call_method_post(method='GetServers', json_scheme=json_scheme)
        self.json_servers = json_obj
        # if this method is called I assume that i must re-read the data
        # so i reinitialize the vmlist
        self.vmlist = VMList()
        # getting all instanced IP in case the list is empty
        if len(self.iplist) <= 0:
            self.get_ip()
        for elem in dict(json_obj)["Value"]:
            if elem['HypervisorType'] is 4:
                s = Smart(interface=self, sid=elem['ServerId'])
            else:
                s = Pro(interface=self, sid=elem['ServerId'])
            s.vm_name = elem['Name']
            s.cpu_qty = elem['CPUQuantity']
            s.ram_qty = elem['RAMQuantity']
            s.status = elem['ServerStatus']
            s.datacenter_id = elem['DatacenterId']
            s.wcf_baseurl = self.wcf_baseurl
            s.auth = self.auth
            s.hd_qty = elem['HDQuantity']
            s.hd_total_size = elem['HDTotalSize']
            if elem['HypervisorType'] is 4:
                ssd = self.get_server_detail(elem['ServerId'])
                try:
                    s.ip_addr = str(ssd['EasyCloudIPAddress']['Value'])
                except TypeError:
                    s.ip_addr = 'Not retrieved.'
            else:
                s.ip_addr = []
                for ip in self.iplist:
                    if ip.serverid == s.sid:
                        s.ip_addr.append(ip)
            self.vmlist.append(s)
        return True if json_obj['Success'] is True else False
910348
public static dnspolicy64[] get(nitro_service service) throws Exception{
		dnspolicy64 obj = new dnspolicy64();
		dnspolicy64[] response = (dnspolicy64[])obj.get_resources(service);
		return response;
	}
340768
public static vpnurl[] get(nitro_service service) throws Exception{
		vpnurl obj = new vpnurl();
		vpnurl[] response = (vpnurl[])obj.get_resources(service);
		return response;
	}