how domain.com to www.domain.com

Jan lists at rak.radio.cz
Sat May 26 09:27:10 UTC 2001



> how to configure that when people type "domain.com" , the bind
> translate it to "www.domain.com"??

hi,

same question was answered (for me...) a few days ago. You might want to
search the archive...

Anyways, in your master zone definition file, put this line:
domain.com.	IN	A	xxx.xxx.xxx.xxx

Where xxx.xxx.xxx.xxx is the ip of your www server. Be sure the www server
(Apache?) has a virtual host for domain.com

This works fine for me with Bind 9.1.2 and Apache 1.3.19.

I was also wondering - anybody knows - can the above line point to a CNAME
instead of pointing to an ip?

Hope it helps!
Jan





More information about the bind-users mailing list