Server Fault is a question and answer site for system and network administrators. 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 have an apache with following settings.

I have 3 other computers in my network. 2 desktops and a laptop.

On every computer, on the browser I want to type some thing like, --> resolve to --> resolve to

and, --> resolve to

I want 2 and and I just want it to resolve these addresses for every computer on the network. I dont want it to cache public domain names for local use nor have outside internet access these sites. The above apache is running on a ubuntu 9.04 VM, and I assigned the IPS.

I am following this guide there.

I am having issues with zone definition and reverse zone definition files. I dont really understand the options. Can some one tell me which options to change to suit my particular case....

// replace with your domain name. do not forget the . after the domain name!
// Also, replace ns1 with the name of your DNS server      IN      SOA (
// Do not modify the following lines!

// Replace the following line as necessary:
// ns1 = DNS Server name
// mta = mail server name
// = domain name      IN      NS          IN      MX     10

// Replace the IP address with the right IP addresses.
www              IN      A
mta              IN      A
ns1              IN      A

and the reverse zone definition file,

//replace with yoour domain name, ns1 with your DNS server name.
// The number before IN PTR is the machine address of the DNS server. in my     case, it's 1, as my IP address is
@ IN SOA (

                     IN    NS
1                    IN    PTR

I am just confused and I'd rather have a clearer understanding of what I am doing than trying a bunch of things. Any help would be great.... Also, please let me know if I am not doing some thing right. Thanks for your time.

share|improve this question
+1 for a polite, well-formed and well-illustrated question. – msanford Dec 17 '10 at 2:07
This might be a stupid question, but have you configured your LAN machines to ask for DNS resolution from that bind server you set up? – msanford Dec 17 '10 at 2:11
If this is only for a few hosts on your local network you might be much better off with something more light-weight like Dnsmasq instead of messing with bind. – Zoredache Dec 17 '10 at 2:16

In your scenario, which sounds like a LAN development case, I would take the easy road and just edit the /etc/hosts file on your three local machines to resolve to your LAN development server, rather than going through the rigmarole of configuring bind on your LAN.

# Host Database
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##       localhost broadcasthost
::1             localhost

You'll still get and /site2 because they're handled by Apache.

The only caveat is that you will have to have the user add the port to the request because you can't specify destination ports in /etc/hosts, or you could use a couple of the simple options available to you through iptables and vhosts.conf.

I'm also assuming this would be an acceptable solution because you said "I just want it to resolve these addresses for [three| computer[s] on the network" and not I want to learn how to configure bind properly.

share|improve this answer

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.