blokada icon indicating copy to clipboard operation
blokada copied to clipboard

Only Blokada DNS and Cloudflare DNS work

Open realpixelcode opened this issue 3 years ago • 2 comments

In Blokada, only Cloudflare DNS and Blokada DNS work. None of the other services listed work. In the browser, I get the error DNS_PROBE_FINISHED_BAD_CONFIG.

  • It does NOT make a difference whether "Encrypt DNS" is turned on or off.
  • It does NOT make a difference whether I set the DNS for all networks or for mobile/WiFi individually.
  • It does NOT make a difference whether my phone is connected to the internet via cellular network or WiFi.
  • The other DNS services are NOT offline. (For example, I'm using Digitale Gesellschaft's DoH right now in Desktop Firefox, and it's working fine.)
  • I have NOT set a custom DNS service in the system settings.
  • I have disabled "Private DNS" in the system settings.

I'm using Blokada 51.8.0 from F-Droid on Android 11.

I captured this log immediately after setting Digitale Gesellschaft DNS and trying to reach f-droid.org:

17:26:28.591   Blocka     Querying tunnel status
17:26:28.601 W Persistenc Could not load persistence for: class model.BlockaRepoConfig (Kotlin reflection is not available), reason: Nothing persisted yet
17:26:28.602   Persistenc Returning defaults for class model.BlockaRepoConfig (Kotlin reflection is not available)
17:26:38.169   Networks   actionUseDns (digitalegesellschaft, blockaInPlus: false) for FALLBACK:null
17:26:38.204   Engine     Updating engine config
17:26:38.205   Engine     Reloading engine, config: (enabled=true, dns=digitalegesellschaft, doh=true, gw=null) for (null, type=FALLBACK)
17:26:38.205   PacketLoop Requested to stop packet loop
17:26:38.206   BlockaDns  Stopping DoH DNS proxy
17:26:38.317   SystemTunn Received a request to close tunnel
17:26:38.318   SystemTunn Binding SystemTunnel
17:26:38.321   SystemTunn Bound SystemTunnel
17:26:38.321   SystemTunn Tunnel turnOff() called
17:26:38.322   SystemTunn Closing tunnel descriptors
17:26:38.322 W Engine     Waiting after stopping system tunnel, before another start
17:26:38.381   PLLibre    Tunnel thread 80342351 interrupted, stopping
17:26:38.382   PLLibre    Cleaning up resources: Thread[PacketLoopForLibre,5,main]
17:26:38.382   PLForwarde Forwarder closed all remaining sockets: 0
17:26:40.013 W MainActivi onPause: ui.MainActivity@a47e06d
17:26:40.015   SystemTunn Unbinding SystemTunnel
17:26:40.034   SystemTunn unbindService called
17:26:42.332   DnsMapper  Using DNS configuration [DoH/PlusMode: true/false]: Dns(id='digitalegesellschaft', ips=[185.95.218.42, 185.95.218.43, 2a05:fc84::42, 2a05:fc84::43], plusIps=null, canUseInCleartext=false)
17:26:42.364   DnsMapper  Using DNS: [/185.95.218.42, /185.95.218.43]
17:26:42.365   DnsMapper  Will use DNS over HTTPS
17:26:42.367   BlockaDns  Starting DoH DNS proxy
17:26:42.611   SystemTunn Received a request to open tunnel
17:26:42.612   SystemTunn Binding SystemTunnel
17:26:42.614   SystemTunn Bound SystemTunnel
17:26:42.615   SystemTunn Tunnel turnOn() called
17:26:42.616   STConfigur Configuring VPN for Libre mode
17:26:42.617   STConfigur Using IP: 203.0.113.69
17:26:42.618   STConfigur Adding DNS server: /185.95.218.42
17:26:42.619   STConfigur Adding mapped DNS server for IPv4
17:26:42.619   STConfigur Adding DNS server: /185.95.218.43
17:26:42.620   STConfigur Adding mapped DNS server for IPv4
17:26:42.621   STConfigur Setting MTU: 1280
17:26:42.623   STConfigur Setting bypass for 40 apps
17:26:42.642   SystemTunn Asking system for tunnel
17:26:42.705   PacketLoop Requested to start packet loop (libre mode)
17:26:42.706   Log        Adding onShareLog callback for PLForwarder
17:26:42.707   Metrics    Started metrics
17:26:42.707   PLLibre    Started packet loop thread: 219031212
17:26:43.266   Metrics    DNS-RTT/DNS-ERR/REC-ERR: 170ms/0/0
17:26:45.676   Metrics    DNS-RTT/DNS-ERR/REC-ERR: 51ms/0/0
17:26:47.794   Metrics    DNS-RTT/DNS-ERR/REC-ERR: 53ms/0/0
17:26:49.981   Metrics    DNS-RTT/DNS-ERR/REC-ERR: 43ms/0/0
17:26:52.819 W MainActivi onResume: ui.MainActivity@a47e06d
17:26:52.827   Blocka     Querying tunnel status
17:26:52.832 W Persistenc Could not load persistence for: class model.BlockaRepoConfig (Kotlin reflection is not available), reason: Nothing persisted yet
17:26:52.833   Persistenc Returning defaults for class model.BlockaRepoConfig (Kotlin reflection is not available)

realpixelcode avatar Mar 06 '22 17:03 realpixelcode

I've noticed the same issue on a Samsung stock Android 12 phone.

realpixelcode avatar Apr 01 '22 22:04 realpixelcode

related: https://github.com/blokadaorg/blokada/issues/807

eadmaster avatar Mar 08 '24 18:03 eadmaster