public Vector<String> resolve(String name){
    	Vector<String> out = new Vector<String>();
    	if(nameServer!=""){
	    	DNS dns = (DNS)this.getApp(core.ApplicationLayerDevice.DNS_CLIENT_ID);
	    	int id;
			try {
				id = dns.SendMessage(nameServer, 53, name, DNS_Message.A_QUERY_TYPE);
				if(dns.receivedMessages.containsKey(id)){
					DNS_Message dnsMes = dns.receivedMessages.get(id);
					Vector<DNS_Message.Answer> answer = dnsMes.getAnswer();
		            for(int i=0; i<answer.size(); i++){
		            	DNS_Message.Answer ans = answer.get(i);
		            	out.add(ans.resource);
		            }
				}
			} catch (CommunicationException e) {
			} catch (LowLinkException e) {
			} catch (InvalidNetworkLayerDeviceException e) {
			} catch (TransportLayerException e) {
			}
    	}
    	return out;
    }