I could never force OpenVPN to use the remote DNS provided by the vpn server in the latest Raspberry Pi OS (ubuntu has no problem in network manager by default). I've tried so many ways to fix the DNS leak in Raspberry OS following the tutorials online and nearly all suggested a public DNS such as and through settings in Router or .conf. Even though I could force the DNS to or etc. it still leaks my country of origin because Google/etc. forwards the requests to a local DNS server with a local IP.

  • Hi there. This is really interesting news. But because Stack Exchange is a Question and Answer site, I would suggest editing your question. The post above here.. make it a question. And then answer your own question. This is perfectly valid. It has merit that in time a new solution may be found and that could become a very helpful answer along side yours. Thanks for sharing. I hope you find the time to edit your question. As by rules this may get closed or deleted.
    – Piotr Kula
    Jul 6, 2020 at 20:32

1 Answer 1


Just to share a relatively easy fix I discovered by chance - install Pihole. It fixed the leak by forcing the DNS the same as the external IP assigned by VPN provider.

  • Please accept your own answer with a click on the tick on its left side. Only this will finish the question and it will not pop up again year for year.
    – Ingo
    Jul 10, 2020 at 9:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.