how to allow domain.com as well as www.domain.com ?

Joseph S D Yao jsdy at cospo.osis.gov
Wed Jun 16 15:33:03 UTC 1999


In obviously too much haste, I scribbled:

> > How do I set up an alias domain.com for a host www.domain.com?
> > 
> > So that poeple can reach the host by either http://domain.com or
> > http://www.domain.com.
> 
> Buy DNS and BIND, Albitz & Liu, 3rd Edition
> 
> Read it
> 
> Find:
> 	domain.com.	IN  CNAME	www.domain.com.

I have no excuse for the above except unreasonable haste.  The
"domain.com" obviously pre-exists the "www.domain.com".

And I realized this last night - right after sending this - but didn't
see it back until just now, so didn't reply to myself until now.

Depending on the existing setup, you could

	domain.com.	IN  A		the.right.IP.address
	www.domain.com.	IN  CNAME	domain.com.

or just add the "domain.com.	IN  A ..." record with no other
changes.

Buying the book and reading it are still good advice, however.

--
Joe Yao				jsdy at cospo.osis.gov - Joseph S. D. Yao
COSPO/OSIS Computer Support					EMT-B
-----------------------------------------------------------------------
      This message is not an official statement of COSPO policies.



More information about the bind-users mailing list