Closed sintanial closed 5 years ago
Hello, i try to use async resolver and in my simple example future.onSuccess called twice with different result. In first call i receive only one resolved ip, in second call i receive many ips... i think it's wrong behavior
DnsClient client = new DnsClient(); client.setDataSource(new AsyncNetworkDataSource()); final MiniDnsFuture<DnsQueryResult, IOException> future = client.queryAsync("google.com", Record.TYPE.A); future.onSuccess(new SuccessCallback<DnsQueryResult>() { @Override public void onSuccess(DnsQueryResult result) { Set<InternetAddressRR> answer = result.response.getAnswersFor(result.query.getQuestion()); System.out.println(answer.iterator().next().getInetAddress()); } }); future.onError(new ExceptionCallback<IOException>() { @Override public void processException(IOException exception) { exception.printStackTrace(); } });
So ... some update ? Maybe i can help you ? I don't know your library well, but if you tell me where to look, I'll try to fix it
Hello, i try to use async resolver and in my simple example future.onSuccess called twice with different result. In first call i receive only one resolved ip, in second call i receive many ips... i think it's wrong behavior