Simple question of dns?

Hornet hornetmadness at gmail.com
Wed Aug 10 17:58:07 GMT 2005


On 8/10/05, Carstea Catalin <carstea.catalin at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at 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-


More information about the freebsd-questions mailing list