webserver test environment

gary nospam at thanks.com
Sun Feb 22 02:49:46 UTC 2004


I am setting up a web/mail server for remote colocation (OpenBSD,
Postfix, Apache, Bind9). I would like to get it up and running on my
home LAN for testing before it gets sent away.

I will be assigned two IP addresses by the colo host, one for each
nameserver. Lets assume that my webserver is going to be harry.com and
all the websites I host will use nameservers ns.harry.com and
ns2.harry.com. The webserver will then run name based virtual hosts.

Is there any way to create a temporary setup to simulate this on my LAN
by configuring my gateway to pass those requests to the
webserver so it can serve the virtual websites and not just its IP
based default website?

Do I just duplicate all the dns entries by creating a zone section (and
zone file) for each website on the gateway? Or a single zone/zone
file containing CNAME records for each website pointing to the
webserver's IP address?

I hope after reading that you are not as confused as I am :)

many thanks in advance, Gary


More information about the bind-users mailing list