Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 was wondering if it possible to setup local area network domain names, so for instance if I asked for, the dns server would automatically send me to (it would "take over" if there is actually a out on the internet). I would imagine that I would do this through bind (bind9 to be exact), but im not sure how to go about doing it unfortunately

share|improve this question
up vote 2 down vote accepted

Yes, it's possible to do that, and people/organizations do it all the time.

What you need to plan for, when doing it, is that is not useful to give answers pointing to private address space to people outside your private network so you need a mechanism to prevent those answers from being given out to just anybody who does a query.

BIND 9 has a mechanism called "views" to allow you to respond to queries using one set of answers for one group of clients and another set of answers for other clients. It's pretty much designed for exactly what you want to do.

What most people in your situation do is set up two views, "internal" and "external", and address match lists to match the appropriate views. They then selectively provide answers based on which address match list the querying client matches -- in your case you might set things up so that a query from a source address in receives answers from the zone data configured for the "internal" view, everybody else receives the "external" view.

Information on view declaration statements and address match list syntax can be found in the BIND 9 Administrator's Reference Manual, which is distributed electronically with BIND source (or can be found on-line at )

share|improve this answer
excellent, thanks! found some guides online explaining views and zones as well, made it much easier :) – lacrosse1991 Oct 19 '12 at 1:39
This tutorial really helped me: – Drew Apr 6 '13 at 0:40

Your Answer


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.