How to Use PiHole DNS with OpenVPN

How to Use PiHole DNS with OpenVPN
Photo by Khara Woods / Unsplash

to use pihole dns with openvpn, open your .ovpn file in a text editor and add the following lines for your DNS

....
....
....
....
dhcp-option DNS 192.168.10.10
dhcp-option DNS 192.168.0.10
<ca>
-----BEGIN CERTIFICATE-----

save file and load it up on openVPN app, your requests will be served through your local DNS server hosted at 192.168.10.10 or 192.168.0.10