Page 1 of 1

How to fix Android not using server provided DNS

Posted: Sun Dec 20, 2020 3:32 pm
by erhan
I had the problem on Lineageos 17.1 that Android was not using the server provided DNS. The solution is the following:

Go to Settings > Network & Internet > Private DNS and set to Off

This way the server provided DNS is used and I can resolve everything correctly in the browser. If you still have problems, check your logs if the DNS directive was sent at all and use termux to test with dig hostname @ip_of_dns. Do not forget that Termux does use resolv.conf instead of the Android one. So the @ is important!

Can we add this to the FAQ please?

Thank you for your work and contribution to secure network connectivity!

Re: How to fix Android not using server provided DNS

Posted: Tue Dec 26, 2023 6:42 pm
by Sulimot
Hello, I registered on purpose to say THANK YOU VERY MUCH!!