DiscountASP.NET wants you to point your domain at their nameservers for their hosting to work. This is kind of a bummer since I was happy with Google Apps handling that. The good news though is this CAN be done! I figured out how to do the CNAMES myself and had been smart enough to write down the info I needed before switching nameservers. Unfortunately I didn't write down the MX Records but with help from Steve Trefethen's blog I was able to fix them. My settings are below:
CNAME Record Manager
Canonical Name Record: Creates an alias from one hostname to another.
Use of CNAME is generally not recommended.
Domain Name | Destination | TTL |
blog.cdeutsch.com | ghs.google.com | 3600 |
calendar.cdeutsch.com | ghs.google.com | 3600 |
docs.cdeutsch.com | ghs.google.com | 3600 |
mail.cdeutsch.com | ghs.google.com | 3600 |
sites.cdeutsch.com | ghs.google.com | 3600 |
start.cdeutsch.com | ghs.google.com | 3600 |
Mail Exchanger Record: Identifies the email server that handles email for a domain.
Domain Name | Destination | Distance | TTL |
cdeutsch.com | ASPMX.L.GOOGLE.COM | 10 | 3600 |
cdeutsch.com | ALT1.ASPMX.L.GOOGLE.COM | 15 | 3600 |
cdeutsch.com | ALT2.ASPMX.L.GOOGLE.COM | 15 | 3600 |
cdeutsch.com | ASPMX2.GOOGLEMAIL.COM | 20 | 3600 |
cdeutsch.com | ASPMX3.GOOGLEMAIL.COM | 20 | 3600 |
cdeutsch.com | ASPMX4.GOOGLEMAIL.COM | 20 | 3600 |
cdeutsch.com | ASPMX5.GOOGLEMAIL.COM | 20 | 3600 |
<system.webServer> <rewrite> <rules> <rule name="Canonical Host Name" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTP_HOST}" negate="true" pattern="^cdeutsch\.com$" /> </conditions> <action type="Redirect" url="http://cdeutsch.com/{R:1}" redirectType="Permanent" /> </rule> </rules> </rewrite> </system.webServer>
Or if you want to do the reverse (cdeutsch.com to www.cdeutsch.com) :
<system.webServer> <rewrite> <rules> <rule name="Redirect to WWW" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{HTTP_HOST}" pattern="^cdeutsch.com$" /> </conditions> <action type="Redirect" url="http://www.cdeutsch.com/{R:0}" redirectType="Permanent" /> </rule> </rules> </rewrite> </system.webServer>
Now that I had that working I needed some content. What better way to start then with a fresh ASP.NET MVC 2 website. I started with the basic template built-in to Visual Studio 2010. You'll need to go to your project's References and click "Properties" on the "System.Web.Mvc.dll" and change "Copy Local" to "True" to get MVC to work on DiscoutASP.NET's servers. More info here.
- In your Control Panel go to "IIS Tools"
- Under the "ASP.NET Version" tab set the version to "4.0".
- Make sure after you hit "Update" you read the warning and click "Update" (or whatever it says) again.