Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Aug 2005 13:57:58 -0400
From:      Hornet <hornetmadness@gmail.com>
To:        Carstea Catalin <carstea.catalin@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Simple question of dns?
Message-ID:  <f42935a6050810105770d92ef5@mail.gmail.com>
In-Reply-To: <dc6701ba050810100161e69a32@mail.gmail.com>
References:  <dc6701ba050810100161e69a32@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

On 8/10/05, Carstea Catalin <carstea.catalin@gmail.com> wrote:
> I want to configure my dns to redirect all request from :
>  http://www.mail.mydomain.com <http://www.mail.mydomain.com>;
>  to
>  http://mail.mydomain.com
>  Many users do first request and my server respond only al the second url.
>  Tks!
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 

DNS will not do "redirects", that's a function of a web server.
You can do an aliases. The format would be like this in the zone file.

www.mail   IN   CNAME    mail.domain.com.

So going to www.mail.domain.com is the same as using mail.domain.com.
The only time it is not good to do the above, is when your web server
is doing name based virtual hosting.

-Erik-



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f42935a6050810105770d92ef5>