The situation is, I have a website where the users get a sub domain. eg: client.mydomain.com. If the client fails to meet certain condition (eg. payment default), I want the above site to be pointing to a different web site. The way we want to do it is by creating a dns record with the appropriate redirection.
I use a win 2003 server, and program in .Net. any inputs on how I can programmatically do this?
I do control the website, however the reason is there are a lot of users (and hence sub domains) and also there is no physical website for (client.mydomain.come), it’s like a wordpress/blogger where a user has blog.wordpress.com (and I assume they don’t create a new website for each user).
Shouldn’t it be possible to map *.domain.com to your server-ip and then from your app configure the host-binding? that way you will use the same app for all users. Otherwise, you can always check the host yourself and redirect, switch webroot etc or whatever you want.