Resources for setting up DNS for a VPN
This post is a log of all the resources I needed so that I don't have to search for them again
Assuming you have a OpenVPN, (or take-a-look-here)
Set up a DNS like here
And then you'll need this on your server
tcpdump -vvv -s 0 -l -n port 53 -i tun0 Source to see your dns requests
And this in your
server.conf of openvpn
push "dhcp-option DNS <ip-at-which-dns-is-running>"
And don't forget to run
dig google.com or
dig your-own-private-grave.in-your-own.subnet on your client
That should do it.