This requires a few steps.
First you need to find out how your users will configure their domain to record CNAME for your site. You can archive this in several ways where education is best. Creating partnerships with hosting providers requires a large amount.
In IIS, this requires that you either add each host name manually (however, it could also be archived using scripts), or have a dedicated IP address only for your site.
, . , , , , , . ( System.Net).
if (Dns.GetHostEntry("www.user.example.com").HostName == "www.example.com")
{
// www.user.example.com is a CNAME for www.example.com
}
ASP.NET MVC . , Route, .