Search Again:

Re: Domain Forwarding

From: Global Homes Webmaster
Date: Wednesday, July 25, 2001
Time: 11:55:53 am

On 07/25/01 at 14:38, Sean Stephens wrote:

> How would I set my DNS so that someone going to "domain.com" goes directly
> to "www.domain.com" without having to set up a second virtual host on the
> web server?

You can't do that with DNS because it's not a DNS issue, it's a web server
issue. What you do in the DNS set-up is to make sure that both domain.com and
www.domain.com resolve to the IP address of the web server (either by giving
them both A records or by giving www a CNAME that points to domain.com) so
that HTTP requests go to the right machine. The web server must then be
configured to do the right thing with both domains, directing them to the
proper virtual host(s). If you're using WebSTAR and W* Virtual Hosts, you must
have a separate entry for each domain. If you're using the Welcome plug-in for
virtual hosts, you can use a single entry with a wildcard to handle both
domains. If you're using some web server other than W*, it may be handled
differently, depending on the server.

> Isn't that a good idea to save time and energy on the web server?

It might be, except that it's not within the purview of DNS.

Christopher Bort | cbort@globalhomes.com
Webmaster, Global Homes | webmaster@globalhomes.com
<http://www.globalhomes.com/> | PGP public key available on request



Messages In This Thread:



Return to Digital Point Solutions' Home Page