DNS over VPN

Recently i got my hands on an M350G5 HP server. Which is completly whitelisted for Esxi 5.*
So now i have two ESXI machines. One at my home and one at my dad’s house.

I planned out some VM’s like ubuntu desktop, vcenter etc etc.
On both addresses i have Fritz!box 7390 routers. Which are capable of setting up a LAN to LAN vpn tunnel quite easily. (No hassle ;))

So far so good, but i have a DNS at my home with ip and i wanted to use that DNS in my dad’s network aswell.

My DNS server is a Centos 6.5 (Chroot) bind server. Which has records for all VM’s and machines with a static ip like routers etc.

But then the trouble began. I wasnt able to resolve from my dad’s house to mine.. But to make a long story short, there is an easy trick to get the DNS server working on both networks.

In the /etc/named.conf file, there is this bit:

We want to focus on the allow-query part.
As you can see now there is only one network allowed besides the localhost. At my home i have the ip range of, but at my dad’s house it is
After an entire day of trial and error i stumbled upon a forum post which pointed me in this direction.
Simply change to:

All your dig / nslookup / ping tests will work.

To be sure this works, please perform a service named restart as root.
Important note: Please be aware that the network settings can be different for you. Change them to the range your network is using.

Leave a Reply

Your email address will not be published. Required fields are marked *