use of org.minidns.dnssec.DnssecQueryResult in project Smack by igniterealtime.
the class DnsOverXmppMiniDnsResolver method resolve.
@Override
public DnsMessage resolve(DnsMessage query) throws IOException {
Question question = query.getQuestion();
final DnsQueryResult dnsQueryResult;
if (query.isDnssecOk()) {
DnssecQueryResult dnssecQueryResult = dnssecClient.queryDnssec(question);
dnsQueryResult = dnssecQueryResult.dnsQueryResult;
} else {
dnsQueryResult = dnsClient.query(question);
}
return dnsQueryResult.response;
}
Aggregations