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

I've created the following virtual hosts:

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

    <Directory "/www/vhosts/testingsitehere.com">
        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 stackoverflow.com Mar 14 '11 at 11:45

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

1 Answer 1

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 testingsitehere.com 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.