pull/214/head
M66B 1 year ago
parent 0abad7e694
commit 74f429ad4b

@ -126,9 +126,6 @@ public class DnsHelper {
Log.i("Using Android DNS resolver");
Semaphore sem = new Semaphore(0);
DnsResolver resolver = DnsResolver.getInstance();
//OPTRecord optRecord = new OPTRecord(4096, 0, 0, Flags.DO, null);
//query.addRecord(optRecord, Section.ADDITIONAL);
//query.getHeader().setFlag(Flags.AD);
Log.i("DNS query=" + query.toString());
resolver.rawQuery(
null,
@ -173,10 +170,6 @@ public class DnsHelper {
}
if (ex == null) {
//ConnectivityManager cm = getSystemService(context, ConnectivityManager.class);
//Network active = (cm == null ? null : cm.getActiveNetwork());
//LinkProperties props = (active == null ? null : cm.getLinkProperties(active));
//Log.i("DNS private=" + (props == null ? null : props.isPrivateDnsActive()));
Log.i("DNS answer=" + result.toString() + " flags=" + result.getHeader().printFlags());
return result;
} else {

Loading…
Cancel
Save