Announcement

Collapse
No announcement yet.

How to create an Alias (cname) record to point to a subdomain?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to create an Alias (cname) record to point to a subdomain?

    Hi

    How do I create an alias/cname in windows dns that points me to a subdomain in iis?

    E.g.

    If I type in http://192.168.0.2/test , I get a website that I am developing.

    All users work on a terminal server. If they type in the same url they get there also.

    I want to create an alias/cname so that when they type in http://test , it takes them to the directory above.

    How can that be achieved?

  • #2
    Re: How to create an Alias (cname) record to point to a subdomain?

    After a bit of searching, I found someone with the same problem

    http://forums.asp.net/t/1505577.aspx/1

    .............but no solution. Dont ya hate that?

    Comment


    • #3
      Re: How to create an Alias (cname) record to point to a subdomain?

      As you read in the article form the link you posted, you cannot accomplish this alone via DNS.

      In DNS you can create the record to point to the IP address of the web server, then on IIS, if you have more than one web site, you need to add the appropriate host headers in the bindings so that IIS knows which webserver to pass the traffic to. Finally, if you are trying to access a subfolder, then reconfigure the web site so that the root is the direct folder tied to the website.

      What version of IIS are you using to provide you with exact steps?
      JM @ IT Training & Consulting
      http://www.itgeared.com

      Comment


      • #4
        Re: How to create an Alias (cname) record to point to a subdomain?

        Finally, if you are trying to access a subfolder, then reconfigure the web site so that the root is the direct folder tied to the website.
        There is only one website on the webserver, but I cant seem to get the default website to change from the IIS7 welcome page.

        I admit, I'm pretty bad at IIS. But yeah, if I create a virtual directory & use the browse feature in IIS, it shows the correct web page. If I change the default location of the default web page to the directory of the index files for the web site, I still get the IIS7 welcome page ....what gives?

        Ive restarted, rebooted, but still the default IIS7 webpage.

        Comment


        • #5
          Re: How to create an Alias (cname) record to point to a subdomain?

          JM, thanks very much for your input. Sometimes it's just a few words by someone else that is all that's needed to free the brain lock up, or create the lateral thinking.

          Ok, so what I did was change the default website to point to the directory where my files were. I got that right, but what I didn't do was change "all unassigned" to the the ip addresss of the webserver.

          Once I did that, it worked from the webserver, instead of opening the default IIS7 welcome page. I don't understand enough about IIS7 to understand why it is that this happens, when a) I changed the default directory, b) I deleted the files in inetpub & c) I changed the default document & actually deleted the IIS7 one.

          Then all I needed to do was create an A record on the DNS server that said
          "test"
          192.168.0.2

          Now all users get directed to the correct website when they type in
          http://test

          Comment


          • #6
            Re: How to create an Alias (cname) record to point to a subdomain?

            Even though i sorted out my present problem. I still don't know what to do if I needed to do the same thing with a 2nd website, when the default one is already in use.

            Comment

            Working...
            X