Use DNS watch as default DNS server

This commit is contained in:
M66B 2019-07-16 11:02:51 +02:00
parent 8de929ff54
commit 2e4d0c5917
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,8 @@ import java.util.Map;
import javax.mail.MessagingException;
public class ConnectionHelper {
private static final String DEFAULT_DNS = "8.8.8.8";
// https://dns.watch/
private static final String DEFAULT_DNS = "84.200.69.80";
static final int AUTH_TYPE_PASSWORD = 1;
static final int AUTH_TYPE_GMAIL = 2;

View File

@ -442,7 +442,6 @@ public class EmailProvider {
private static SRVRecord lookup(Context context, String record) throws TextParseException, UnknownHostException {
Lookup lookup = new Lookup(record, Type.SRV);
// https://dns.watch/ 84.200.69.80
SimpleResolver resolver = new SimpleResolver(ConnectionHelper.getDnsServer(context));
lookup.setResolver(resolver);
Log.i("Lookup record=" + record + " @" + resolver.getAddress());