Inexpensive ASP.NET hosting with wildcard subdomains? - Jon Galloway

Inexpensive ASP.NET hosting with wildcard subdomains?

I had an idea for a fun little site that would work best with wildcard subdomains[1]. Any suggestions on an inexpensive host? I found LFC Hosting, which would be $15/month with the static IP they require for wildcard subdomains. Cheap is good in this case.

[1] Wildcard subdomains means *.domain.com, where any thing entered before the domain maps to .domain.com. As an example, blue.domain.com, red.domain.comyellow.domain.com, and anycoloryoucanthinkof.domain.com would all map to the same site. This is different from unlimited subdomains which require manual setup - this should all happen on the fly.

Published Sunday, January 15, 2006 8:03 AM by Jon Galloway
Filed under: ,

Comments

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

Jon,

It's nothing to do with the ASP.NET hosting. As long as you can change the DNS settings for your domain, you're fine.

Just add a wildcard DNS A record to the zone file for your domain.

So if the IP address is 62.1.2.3, the A record line in your zone file then looks like:

* A 62.1.2.3

That way, all requests to any sub domain will end up at specified IP address and you can then handle them appropriately.

Hope that helps.

Sunday, January 15, 2006 8:39 AM by Wim Hollebrandse

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

I hosted some sites at LFC a couple years ago. I wasn't impressed with the service and switched only a couple months thereafter. It wasn't horrible, but i do think there are better options out there.

Sunday, January 15, 2006 8:56 AM by karl

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

With regards to your question about inexpensive shared web hosting, I've heard good things about DiscountASP.net, see: http://www.discountasp.net.

They support ASP.NET 1.1 as well as 2.0.

The deal about the subdomains can be sorted out by changing your DNS zone file as I mentioned earlier.

Sunday, January 15, 2006 1:03 PM by Wim Hollebrandse

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

Wim, that is ignorant.

DNS settings will do nothing if the ISP configures IIS to listen to the host headers. Yes, the DNS will make sure all subsites are mapped to the correct IP - they sadly will not be served by YOUR iis instance, though, as it does not listen to them.

I just checked our own setup (HELM), and it seems to be the same. Not sure you CAN set things up properly without a separate IP. I am not sure IIS accepts wildcards.

That said, $15 a month for hosting is pretty much nearly zero.

Sunday, January 15, 2006 1:36 PM by Thomas Tomiczek

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

Thanks, all. I see that www.discountasp.net offers it as an optional addon for $5 (http://www.discountasp.net/features.aspx#addons), making them $15/month too. I've heard better things about them, so that seems like a good way to go.

Sunday, January 15, 2006 2:18 PM by Jon Galloway

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

Thomas,

I think you're being completely ignorant.

Of course you need to make sure you have your own dedicated IP address. But that's self-explanatory.

And don't talk to me about IIS host headers - I passed an MCP exam for IIS.

All I'm saying is, if your website has been setup with a blank host header - the default (it can still have specific host headers), and you have a dedicated IP address, which you get at each decent host, then this sub domain problem is very easy to solve by adding a wildcard A record in the DNS zone file.

Without your own dedicated IP address, this is indeed not possible.

Sunday, January 15, 2006 2:27 PM by Wim Hollebrandse

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

Okay, guys, play nice or I delete comments. I want a host that supports the configuration, and DiscountASP does, so this seems like a great solution.

Sunday, January 15, 2006 3:00 PM by Jon Galloway

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

Hi John,

For the hosting company, you just need any host that will let you purchase an IP address. For example, GoDaddy lets you purchase an IP address for $2.95 per month, on top of the hosting plan you pick.

For the zone, you need a registrar that will let you create a wildcard entry, I am pretty sure that GoDaddy do *not* let you do this, but definately Enom(.com) do, alternatively you can just use a free service like zoneedit to create your zone (they do support wildcard zones).

You could definately to the whole thing at GoDaddy (but possibly need to setup the zone at ZoneEdit for the wildcard) for under $12 per month.

The only other warning I will give you is that some hosting companies limit what you can do with your account. For example, GoDaddy run ASP.NET 2.0 with CAS (Code Access Security) enabled (not sure which trust level), while if you run your site as a .NET 1.1 site, they give you full trust (for some reason), using the NetworkService inbuilt account.

Other thing you need to watch with some cheaper hosters like GoDaddy is they block all outbound network calls, so your ASP.NET app cannot call external web services (etc). That is unless you purchase a full dedicated server, or a Virtual Dedicated Server account for $40 per month or so (ie you get RemoteDesktop access then).

Hope that helps.

Monday, January 16, 2006 10:04 AM by DT

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

Jon,
If you're going to go the route of a free DNS provider, I like/recommend EveryDNS.net. I've used them for a couple of years with great results. I even have a wildcard record set up as Wim talked about up top and it work find w/IIS.

You can configure your DNS records however you need, and the cost is $0. Of course, if you like the service then they will accept donations.

Monday, January 30, 2006 3:29 PM by Steve Harman

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

Here is one cheap asp hosting provider with HELM. All features I see there are UNLMITED except Bandwidth which is good to maintain a good quality of service. They are not offering UNMETERED Bandwidth but they are offering more bandwidth that one can need. Check their site for more info.

And can someone tell me that how can I pass IIs Server with *.domain.com with or without dedicated IP. Such that *.mydomain.com goto mysite's main page instead of IIs underconstruction page.

Monday, November 06, 2006 8:36 PM by Haider

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

Was very helpful. Thanks

Wednesday, October 10, 2007 6:24 PM by Frank ReCouper

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

hi

i set the wildcard mapping on iis.

now i can't detect subdomains and redirect it to specific url.

in my case, each country is a subdomain and i shoud detect country and add it to RouteData.

i'm using asp.net web form 3.5.

how i should do this?

Thursday, October 20, 2011 7:56 AM by Javad

# re: Inexpensive ASP.NET hosting with wildcard subdomains?

Hi John, As you said in the start of this post "[1] Wildcard subdomains means *.domain.com, where any thing entered before the domain maps to .domain.com. As an example, blue.domain.com, red.domain.com, yellow.domain.com, and anycoloryoucanthinkof.domain.com would all map to the same site. This is different from unlimited subdomains which require manual setup - this should all happen on the fly."

I am excatly want to achieve this, that any string (as subdomain) should direct it to main page, I am able to create * record for A record in zone file, now how to achieve rest? I am getting 404 error.

Tuesday, February 12, 2013 7:21 AM by Kiran

Leave a Comment

(required) 
(required) 
(optional)
(required)