From: Tom <to...@im...> - 2001-10-05 09:27:36
|
Hi Giuseppe, I managed to build a solution after my original post which includes the idea of a redirecting asp page. I placed the asp script (found at the bottom of this post) in the default file of the default website. Because I didn't want to bind the host (user1 for expaple) to a specific website ("poluting the IIS metabase"). I was forced to use the default website because I thought this was the *only* site that intercpets hosts with no bindings. I would also like to note that this worked only at the office and not from an external location rendring te solution worthless. I suppose this is a security setting with us at the office. I think that you are suggesting the following: Stop the default website and create a "general redirect purpose website" which is the only one with no HHN bindings which takes appropriates action for incoming requests depending on domain name and subdomain. Some other questions if you have the patience (I'm a newbie to this) - Statement : It is not possible to have a "website" wich intercpets all request for a *specific* domain. A binding which ignores the sub domain in effect. for example : user1.webiste.com and xerezrser goes to webiste.com where user1 or 'xerezrzer' is nowhere defined. (the "general redirect purpose website" is actualy nicer because it centralises code!) - Question about terminology : given abs.website.com : website.com is a domain abs.website.com is a subdomain as well as a Host Header Domain abs is a host header Is this correct ?? Thanks very much! Tom <% '*************************************************************************** ******************************** dim pos dim script script = UCASE(request.servervariables("SCRIPT_NAME")) dim domain domain = UCASE(request.servervariables("SERVER_NAME")) dim zone pos = InStr(domain,".") zone = UCASE(right(domain,LEN(domain)-pos)) dim host host = UCASE(left(domain,pos-1)) dim QS QS = UCASE(request.querystring) '*************************************************************************** ******************************** %> <% '*************************************************************************** ******************************** SELECT CASE zone case "THEMEPARKVISION.NET" : response.redirect "http://www.themeparkvision.net/NL/Member/default.asp?Login=" & host END SELECT '*************************************************************************** ******************************** %> -----Original Message----- From: asp...@li... [mailto:asp...@li...]On Behalf Of Giuseppe Simone Aielli Sent: donderdag 4 oktober 2001 18:49 To: Tom Cc: asp...@li... Subject: Re: [Aspdns-users] Perseal url solution Hi, the solution is very simple. First you need to create hostname (or cname) type records in your DNS. This can be easily done with ASPDNS, from a web page directly by your visitors. DNS maps only a computername with IP address, so user1.domain.com will map your computer(s) IP(s), BUT when the request arrives to the web server (IIS 5 in the case), it will be only processed by the (virtual) web server who has an appropriate or empty HOST HEADER NAME. You can find the HHNs of a web server under the Web Site page clicking on Advanced on the web site's Properties. But remember: 1. there can be only one virtual server with an empty HHN; 2. leaving the Default web site running if the first source for hackers to exploit your server - I absolutely recommend not to do so; also do not delete it, or IIS will recreate a similar site the first time you attempt to make a web site - just leave it stopped; 3. empty HHN has special meaning in IIS, it means "every host header name" not specified elsewhere. So you don't need ADSI to create confusion in you IIS metabase, but only a single ASP pages who "reads" the HHS requested by the client, searches a database (or text file, XML,...) and makes a redirect or some action. Regarding your last question, ManageServer uses RPC and is able to manage a computer's DNS using only a pure TCP connection between machines. But the impersonated user from the controlling machine HAS to have an account on the controlled server with privileges enough to change DNS records (at least DNS admin rights). Even if there are very few people on this list already, there are more than 3.000 downloads for ASDPN files only on Sourceforge, and I'm in touch with guys who run ASPDNS in various production environments, including server farms with multiple DNS controlled from one or more IISs. Regards, gsa ----- Original Message ----- From: "Tom" <to...@im...> To: <> Sent: Tuesday, October 02, 2001 12:55 PM Subject: [Aspdns-users] Perseal url solution > Hi all, > > I promised a while back to my website visitors that they would get a persnal > url from the website. > So user1 would get user1.website.com and user2 would get user2.website.com. > > Now its time to make this happen but i dont see a clear solution. > > At first i thought that pure DNS manupulation was the answer but, now, I see > this is nut the case. Having very little experience with DSN i thought that > an alias operated in the way that if you alias"user1" to "www" the url > user.website.com would go to www.website.com where the default file could > take appropriate action. > I tried it but it didn't work. > > The alias user1.website.com goes to the root of my website because there is > no binding between the websitefolder and the host (I am using IIS 5). > I think this can be done by using the ADSI/Active directorty API so this > seems no problem. > > > My question to you guys are: > > 1. Is this the simplest solution (I have heared of an MX record, a sort of > catch all record, but my mental model of DNS is too limited to make this > part > of a solution. Feedback is much appriciated. > > 2. The asp script which does the administration runs an computer1 where the > ADSI stuff will take place. The DNS server (over wich I have "total" > control) is > located on computer2 whish I must approach via the internet. I see from the > syntax that ManageServer cann do this with RPC. Has anybody tried this in a > production environment? > > Many thanks, > > Tom > > > _______________________________________________ > Aspdns-users mailing list > Asp...@li... > https://lists.sourceforge.net/lists/listinfo/aspdns-users > _______________________________________________ Aspdns-users mailing list Asp...@li... https://lists.sourceforge.net/lists/listinfo/aspdns-users |