Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to host some websites behind a VPN and I need some help with the finer points of the configuration. Thus far I've settled on OpenVPN + Bind9 and I want to configure the domains like this:

External DNS

I want to be able to connect to the vpn using ''. Once connected I then want to be able to resolve anything which is '*' with the DNS server sitting behind the VPN.

I know that OpenVPN can push DNS servers to clients when they connect. I am having trouble though with the DNS config, both internal and external. I've gone through a few tutorials etc. and tried to reason about it myself but I'm not getting anywhere.

So my main question would be does the above configuration make sense? If so, any general pointers or examples would be greatly appreciated.

Here's what I've tried so far based on this tutorial (I've redacted my domain with When I try the tests with dig at the end to check the resolution is working it fails.

$TTL 15m IN    SOA (
                                            2009010910 ;serial
                                            900 ;refresh
                                            900 ;retry
                                            900 ;expire
                                            900 ;minimum TTL
)       IN NS
ns                     IN A
test                   IN A
share|improve this question

You must log in to answer this question.

Browse other questions tagged .