diff --git a/src/main/java/eu/siacs/conversations/utils/Resolver.java b/src/main/java/eu/siacs/conversations/utils/Resolver.java index 14b230921..c7412682e 100644 --- a/src/main/java/eu/siacs/conversations/utils/Resolver.java +++ b/src/main/java/eu/siacs/conversations/utils/Resolver.java @@ -239,8 +239,8 @@ public class Resolver { ((ReliableDnsClient) client).setUseHardcodedDnsServers(false); } final AbstractDnsClient dnssecclient = DnssecResolverApi.INSTANCE.getClient(); - if (client instanceof ReliableDnsClient) { - ((ReliableDnsClient) client).setUseHardcodedDnsServers(false); + if (dnssecclient instanceof ReliableDnsClient) { + ((ReliableDnsClient) dnssecclient).setUseHardcodedDnsServers(false); } }