Can't check if authentic data on nxdomain etc
(cherry picked from commit dff4880f5e656a3c5e7a987b087d5d699e11452d)
(cherry picked from commit c0505988c4
)
This commit is contained in:
parent
0ee1305fbe
commit
757c94ad8a
1 changed files with 2 additions and 2 deletions
|
@ -295,8 +295,8 @@ public class Resolver {
|
|||
final Question question = new Question(dnsName, Record.TYPE.getType(type));
|
||||
try {
|
||||
ResolverResult<D> result = DnssecResolverApi.INSTANCE.resolve(question);
|
||||
if (!result.isAuthenticData()) {
|
||||
Log.d(Config.LOGTAG, "DNSSEC validation failed: " + result.getUnverifiedReasons());
|
||||
if (result.wasSuccessful() && !result.isAuthenticData()) {
|
||||
Log.d(Config.LOGTAG, "DNSSEC validation failed for " + type.getSimpleName() + " : " + result.getUnverifiedReasons());
|
||||
}
|
||||
return result;
|
||||
} catch (DnssecValidationFailedException e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue