using cname for redirection?

Barry Margolin barmar at alum.mit.edu
Sun Dec 30 21:55:35 UTC 2007


In article <fl8n26$27l6$1 at sf1.isc.org>, <aklist_bind at enigmedia.com> 
wrote:

> Thank you Bill and Barry.
> 
> I wasn't sure if GoDaddy used a CNAME, or just pointed 
> "webmail.<godaddycustomerdomain>.com" to the same IP address as 
> "email.secureserver.net".

Why don't you just type "dig webmail.<godaddycustomerdomain>.com" and 
see?

> 
> Either way, anyone using "webmail.mydomain.com" is redirected to the 
> secureserver.net site, and their own domain is appended in a query string 
> and pre-supplied as the mailserver login...or you can manually enter it, so 
> my redirection in this case doesn't cause problems. The MX records for the 
> domain are secureserver.net records in either case.
> 
> I've only used CNAMES to alias multiple names to the same IP within the 
> domain, like aliasing ftp.domain.com to www.domain.com...I wasn't sure if 
> you could actually point to a different domain with a CNAME...thanks for 
> that clarification.

Why would you think you couldn't?  A CNAME just says "Restart your 
lookup using this name instead."  In fact, CNAMEs tend to be MOST useful 
when they cross domain boundaries, as they're often for the kind of 
thing you're doing -- you don't want to hard-code someone else's IP in 
your domain in case they change it.

-- 
Barry Margolin, barmar at alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***



More information about the bind-users mailing list