1
0
Fork 1

Can't check if authentic data on nxdomain etc

(cherry picked from commit dff4880f5e656a3c5e7a987b087d5d699e11452d)
(cherry picked from commit c0505988c4)
This commit is contained in:
Stephen Paul Weber 2024-01-23 15:08:11 -05:00 committed by 12aw
parent 0ee1305fbe
commit 757c94ad8a

View file

@ -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) {