On Sat, Jun 20, 2009 at 8:33 PM, Jean-Marie
Schweizer<jeanmarieschwei...@gmail.com> wrote:
> Hi Mike,
>
>>
>> You cannot have a CNAME for mydomain.com if you have MX (or any other
>> records) for it.
>>
>> You can find the authoritative answer in RFC 1034.
>> http://tools.ietf.org/html/rfc1034
>
> While you might have RFC on your side, it actually works regardless.

Ignoring Internet standards can cause you *and others* pain in future.
Think IE vs. Firefox.

It sounds like you've found a provider that doesn't follow the DNS
standard. If you architect your system to depend on undocumented
functionality you may find yourself locked into a certain DNS
implementation. That's fine if it's what you want to do.

I would be wary of posting what might be considered an "anti pattern"
to a list where many people would not know better than to copy it.

The standards compliant solution to this problem is to point
example.com to an IP that sends an http redirect.

- Mike

maculike2:~ mbailey$ curl -I google.com
HTTP/1.1 301 Moved Permanently
Location: http://www.google.com/
Content-Type: text/html; charset=UTF-8
Date: Sun, 21 Jun 2009 01:21:13 GMT
Expires: Tue, 21 Jul 2009 01:21:13 GMT
Cache-Control: public, max-age=2592000
Server: gws
Content-Length: 219

maculike2:~ mbailey$ curl -I yahoo.com
HTTP/1.1 301 Moved Permanently
Date: Sun, 21 Jun 2009 01:21:19 GMT
Location: http://www.yahoo.com/
Cache-Control: private
Connection: close
Content-Type: text/html; charset=utf-8

maculike2:~ mbailey$ curl -I microsoft.com
HTTP/1.1 301 Moved Permanently
Connection: close
Date: Sun, 21 Jun 2009 01:21:27 GMT
Server: Microsoft-IIS/6.0
P3P: CP='ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo
OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI'
X-Powered-By: ASP.NET
X-UA-Compatible: IE=EmulateIE7
Location: http://www.microsoft.com
Content-Length: 31
Content-Type: text/html
Set-Cookie: ASPSESSIONIDQQBASQRS=IGGJFOJAFMNOKOILIHMODPEO; path=/
Cache-control: private

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to rails-oceania@googlegroups.com
To unsubscribe from this group, send email to 
rails-oceania+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to