How to connect VPN (Mullvad / NordVPN) through Pi-hole?

I’ve set up Pi-hole on my home network and now wonder if there’s an easy way to connect a 3rd party VPN, so any devices connected to my Pi-hole won’t go through my IP address but rather my VPNs?

Howdy!

Mullvad and PiHole user here, you could use a third party app (wireguard/openvpn) and set the dns address to your pihole. I currently have a PiHole in the cloud I use with my android phone and a Mullvad wireguard config, the only annoying part is updating the ip address manually via SSH for being allowed on port 53.

I’m 90% sure there is way to do it with DDNS and some kinda script but I’m too lazy to look it up.