+ Post New Thread
Results 1 to 7 of 7
Windows Thread, DNS in Technical; This is what I want to do: Create a DNS entry but rather than specify the IP Address of the ...
  1. #1
    kerrymoralee9280
    Guest

    DNS

    This is what I want to do:

    Create a DNS entry but rather than specify the IP Address of the server, I want to be able to specify the exact path for example:

    WWW goes to SERVERIP\FOLDER1\FOLDER2\FILENAME.EXT

    Does anyone know how to do this?

    Many thanks,

  2. #2

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: DNS

    You could set the root of the website to be "SERVERIP\FOLDER1\FOLDER2\" although this would be a file path more like "C:\FOLDER1\FOLDER2\" then set the default index page to be filename.txt instead of index.html

  3. #3
    kerrymoralee9280
    Guest

    Re: DNS

    Yeah I understand that. But lets say I had 3 websites on one server.

    I want www to point to the wwwroot\website1
    I want vle to point to wwwroot\vle
    and I want www2 to point to wwwroot\website2

    ALL on the same server though.

    Is this possible?

  4. #4

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,372
    Thank Post
    624
    Thanked 949 Times in 651 Posts
    Blog Entries
    2
    Rep Power
    317

    Re: DNS

    Virtual server hostname. Are you using Apache?

  5. #5
    kerrymoralee9280
    Guest

    Re: DNS

    No, it's IIS on a 2003 box that I'm using....

  6. #6

    Join Date
    Jun 2005
    Location
    Preston, Lancashire
    Posts
    634
    Thank Post
    11
    Thanked 6 Times in 6 Posts
    Rep Power
    20

    Re: DNS

    I'm no experrt on DNS, but I gather what webman is still right on IIS. If you create a new site in IIS Manager and use the DNS to point to the ip address, I think IIS will sort out where the request goes.



    Andy

  7. #7
    RichardDS's Avatar
    Join Date
    May 2007
    Location
    Brighton, UK
    Posts
    13
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: DNS

    Ok, say that this is your scenario:

    Your IIS server is called "server1" and your domain is "mydomain.com", you want to host three websites on it: "www.mydomain.com", "intranet.mydomain.com" and "extranet.mydomain.com".

    Each site should be configured as a different website in IIS Manager (on server1: right click my computer -> manage -> services and applications -> internet information services (IIS) manager)

    1) Right click on the first one (www)
    2) in the "Web Site" tab, click Advanced
    3) remove anything from the top list
    4) click Add
    5) Select the IP address to listen on (or select All if you only have one IP address)
    6) Enter "80" for the port
    7) Enter "www" for the host header value
    8) Click OK
    9) Click Add Again
    10) select IP address as in (5)
    11) Enter "80" for the port as in (6)
    12) Enter "www.mydomain.com" for the host header value
    13) Click OK, then OK again, and OK once more
    14) on your DNS server, create a CNAME record pointing to the A record for server 1.
    a) Open DNS Management (on your domain controller/DNS server: start -> run -> type "dnsmgmt.msc" -> press enter)
    b) expand out the server
    c) expand out forward lookup zones
    d) right click "mydomain.com"
    e) choose "New Alias (CNAME)"
    f) type "www" in the alias name
    g) type "server1.mydomain.com." in the "Fully qualified domain name...." box
    h) press OK
    i) make sure it has replicated, by doing a nslookup www.mydomain.com on another computer.

    Repeat the process for the other websites.

    Hope that helps

SHARE:
+ Post New Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •