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 was wondering if it possible to setup local area network domain names, so for instance if I asked for local-server.org, the dns server would automatically send me to 192.168.1.111 (it would "take over" if there is actually a local-server.org 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

1 Answer 1

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 192.168.0.0/16 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 http://www.isc.org/software/bind/documentation )

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: howtoforge.com/two_in_one_dns_bind9_views –  Drew Apr 6 '13 at 0:40

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.