2

First of all, my apologies if I'm posting in the wrong forum. I'm a bit lost in the SE galaxy. But since my issue is quite complex and specific, I feel this is the best place. Let me know if I'm wrong.

So for the issue:

  1. I'm using a home router, lent by my service provider. It's local IPv4 is 192.168.1.254.
  2. I have a raspberry pi (IP 192.168.1.15) running a dns service (and ad-blocker) called pihole, configured to use unbound (full recursive dns) on the same machine as its upstream source.
  3. The router is running a dhcp service and points to the raspberry as the default dns server.

I have no problem on my computers, either in wifi or ethernet. Network configuration is alright, DNS is indeed coming from the pi.

Now I want my nexus 6P using the latest version of android to be able to use wifi at home. So I simply connect it to the router wifi, same as I did with my laptop, which is doing great. However, the smartphone is doing his own stuff. Sometimes all will be great, and more often than not, it will drop the wifi saying that there is no internet connection.

Of course I tried a bunch of stuff:

  • Setting network configuration in the phone instead of letting DHCP do its job, no change.
  • Changing wifi channel, no change.
  • Rebooting router, phone, and both, no change.
  • Whitelisting google services like ad service gstatic check and whatever appeared in my pihole admin panel: seemed to solve the problem at the moment, but a few days later, not that great. And not really what I want.
  • Try both "google" and "no provider" as wifi quality check provider in the android wifi settings. No effect.
  • Use external DNS servers like 1.1.1.1 or 8.8.8.8: seems to do the job. But absolutely not my goal.

Note that dns request going through the pi can take up to 1 sec to be answered since it's doing a full recursive search. And I suspect the problem is coming from here.

So does anyone have any idea how to get my phone to stick on this wifi network? Btw, my phone is not rooted and I'd like to avoid going down this road.

migrated from superuser.com Oct 9 '18 at 19:10

This question came from our site for computer enthusiasts and power users.

  • Don’t do recursive lookups with your own DNS server. That’s not even best practice in a corporate environment. There is no reason for it. Forward your requests to your ISP’s provided DNS servers. No DNS query should be taking 1 second. – Appleoddity Oct 9 '18 at 14:02
  • 1
    I don't trust my ISP, Google or event cloudflare. I want to avoid censorship and relying on centralized services. And that's way more important for me than blocking ads. – Warrows Oct 9 '18 at 14:27
  • I seem to have the same problem with my Samsung Galaxy A50. Have you tried disabling IPv6? Or have you found a solution already? – JHBonarius 2 days ago

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.