Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm creating a virtual private cloud as a development environment. Right now there is just a single server running OpenVPN, BIND and Subversion at IP 10.0.0.100.

If I pass along push "dhcp-option DNS 10.0.0.100", then clients can resolve the cloud resources by name (svn.example.dev = 10.0.0.100), but then they can't resolve local DNS names on their own network (e.g. desktop1.example.local).

How can I "add" instead of "replace" dns servers for clients? Or am I now going about this all wrong and I should have a single DNS server that they both access?

share|improve this question

1 Answer 1

You could run a forwarding resolver on each client machine, configured to "forward" queries for .dev to 10.0.0.100 and all other queries to the .local server.

Unbound is quite lightweight, and has easy configuration for forwarding like this.

Possibly the only hard part is hooking into OpenVPN to only enable that forwarding only when the tunnel is up, if required.

share|improve this answer

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.