From ab02df1106e1a85f70ce78db71053c67f8b58fb0 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 31 Jan 2024 07:24:09 +0100 Subject: [PATCH] Require auth for dnssec --- app/src/main/java/eu/faircode/email/DnsHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/DnsHelper.java b/app/src/main/java/eu/faircode/email/DnsHelper.java index 52d67f9b96..c5fd094980 100644 --- a/app/src/main/java/eu/faircode/email/DnsHelper.java +++ b/app/src/main/java/eu/faircode/email/DnsHelper.java @@ -195,7 +195,8 @@ public class DnsHelper { client.getDataSource().setTimeout(timeout * 1000); - client.setDataSource(new AuthoritiveDataSource(client.getDataSource())); + if (!dnssec) + client.setDataSource(new AuthoritiveDataSource(client.getDataSource())); // https://github.com/MiniDNS/minidns/issues/102 if (client instanceof DnssecClient && dns_custom)