Search Again:

Re: www.domain.com vs domain.com

From: Global Homes Webmaster
Date: Thursday, May 4, 2000
Time: 5:22:27 pm

On 05/04/00 at 16:54, Higher Powered web wrote:

> Hi all-
>
> I've got a web* server set for virtual domains.
> Each domain has an entry twice. Once for www.domainname.com and once for
> domainname.com
>
> I've outgrown this and have to bit the bullet and change all the records.
> But I'm not sure how. I want only one record in web* for ease of use as
> well as log files.

Do you still want each site to be reachable with both 'domain.com' and
'www.domain.com'? If so, there's no way around having two entries per site in
your W* virtual hosts set-up, since it doesn't support wildcards in host
names. You might be able to eliminate the 'redundant' entries by using Welcome
for virtual hosts, but I don't use Welcome so I can't say for certain. (I put
'redundant' in quotes because the entries aren't really redundant --
domain.com and www.domain.com are two distinct and separate host names.)

> Someone said this was a dns thing. Is this right?

Getting the domain names to resolve to your web server's IP address is DNS,
yes.

> I currently have QDNS domain records set with the following:
>
> domain.com....NS
> domain.com....NS2
> domain.com....MX
> domain.com....MX2
> name server..A
> name server2.A
> mail server..A
> mail server2.A
> www.domain.com A
>
> Any ideas?

You probably don't need (or want) to have A records for your name and mail
servers in the zone files for your virtual domains. The NS and MX records
should use the hosts' canonical names (i.e., the names that reverse lookups
resolve to), as in:

domain.com. NS ns.yourmaindomain.com.
domain.com. MX mail.yourmaindomain.com.

Only the zone file for yourmaindomain.com. should have A records for the name
and mail servers. So all you really need for the virtual domain is:

domain.com. NS ns1.yourmaindomain.com.
domain.com. NS ns2.yourmaindomain.com.
domain.com. MX mail1.yourmaindomain.com.
domain.com. MX mail2.yourmaindomain.com.
www A www.xxx.yyy.zzz

Don't forget the trailing dots (.) on the fully qualified domain names.

Christopher Bort



Messages In This Thread:



Return to Digital Point Solutions' Home Page