Hi, at first please excuse my bad english, this is not my native language,
i'm from germany.
Im very happy with pi-hole in my LAN. Works good.
Im using an Fritz!Box Router and aded the raspi-IP (static) as
locale dns server. All devices in my LAN are working fine!
Now i wanted to use my pi-hole at my android-cellular with mobile data connection.
I used pivpn to install OpenVPN. OpenVPN works, i can connect with LTE Mobile connection to my lan. But i didnt find a way that i get an pi-holed dns.
A few data from my config:
Raspi with installed pi-hole AND OpenVPN = static 192.168.178.205
I tried the following:
/etc/dnsmasq.d/01-pihole.conf
added line:
interface=tun0
Changed the DNS Line at the openvpn server.conf to:
push "dhcp-option DNS 192.168.178.205"
then sudo reboot
Result:
DNS Error at android device
alternativly i tried:
push "dhcp-option DNS 192.168.178.1"
which is my local Router, normaly uses raspi as dns,
but -- i dont know why --> i get a dns-server from my internet-provider...
naturaly not filtered by pi-hole....
I dont have more ideas and i cannont find more tutorials.
I have read:
and
http://munkjensen.net/wiki/index.php/See_my_PiHole_enabled_OpenVPN_Server
when i add two lines dns as descriped in the second tutorial, the dns
is alway the google dns (second line).
Have anybody an working OpenVPN with Pi-hole DNS activated???
Thanks for your help!!!