Newbie Question

Ajai Khattri ajai at bway.net
Fri Jul 2 21:44:24 UTC 2004


On Fri, 2 Jul 2004 tnaves at linkwest.net wrote:

> I have a mail server that also serves as an ftp, news, and http server.
> The records are as follows:
>
> mail	IN	A	x.x.x.x
>
> ftp	IN 	CNAME	mail
> news	IN	CNAME	mail
> www	IN	CNAME	mail
>
> My question is: I want users to be able to connect to the http server by
> typing www.mydomain.com, which I can do now, and as mydomain.com.  How do
> I do this?

Like this:

example.com.	IN	A	1.2.3.4
www		CNAME	A	example.com.
ftp		CNAME	A	example.com.
news		CNAME	A	example.com

NOTE: you will also need to configure your web server to recognize the
alias (In Apache, you would add a ServerAlias line to httpd.conf for the
virthost).

-- 
Aj.
Sys. Admin / Developer


More information about the bind-users mailing list