Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

mail.example.com 
www.example.com
vpn.example.com

I want to be able to connect to the vpn using 'vpn.example.com'. Once connected I then want to be able to resolve anything which is '*.vpn.example.com' 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.

share|improve this question

migrated from stackoverflow.com Nov 17 '12 at 7:23

This question came from our site for professional and enthusiast programmers.

1  
offtopic, not a programming question. try the superuser or serverfault sites. –  Marc B Nov 17 '12 at 3:58
    
Thx, I didn't know they existed. –  Brian Nov 17 '12 at 4:00
2  
There is a lot of missing information here. I would be able to tell you whether or not your configuration made sense if you posted anything about your configuration or what you are trying to achieve with it. –  Alex Straffin Nov 17 '12 at 4:03

1 Answer 1

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.