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've created the following virtual hosts:

<VirtualHost *:80>
    DocumentRoot /www/vhosts/
    ErrorLog /www/Apache22/logs/error.log

    <Directory "/www/vhosts/">
        Options All
        AllowOverride All
        order allow,deny
        allow from all

and have installed BIND.

This is a testing server, not public-facing, so no one can access these. It uses Web-Developer Server Suite (hence the C:/www/vhosts folder path).

Should I use BIND over HOSTS file to map my domains to localhost, or should I keep using HOSTS as I did before?

Can BIND actually map domains/DNS to localhost, or have I misunderstood here?


share|improve this question

migrated from Mar 14 '11 at 11:45

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

If you are not serving a local network/intranet, there's no need to setup BIND, I'd say. If you are testing your virtual host from the same machine that it is running on, using %systemroot%\System32\drivers\etc\hosts will work just fine.

What additional mapping apart from to were you thinking of?

share|improve this answer

Your Answer


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