+ Post New Thread
Results 1 to 8 of 8
Windows Thread, DNS / Hosts question in Technical; Not quite sure the best way to do go about this. Im running IIS on a server here, and its ...
  1. #1

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,521
    Thank Post
    1,333
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199

    DNS / Hosts question

    Not quite sure the best way to do go about this. Im running IIS on a server here, and its opened up for access from Internet. Its SSL only, and for staff to access it they need to log on to https://blah.our-domain.com.

    We dont host our-domain.com, Ive just set a forwarder with the provider to forward blah.our-domain.com to the schools static IP, and then on to the IIS server.

    The problem is, because the SSL Cert is signed to the blah.our-domain.com URL, we have to access the server through that URL even when on the Local Network.

    So all the server logs show connectios from our Static Wan IP address, rather than the local machine IPs. I added a line in the hosts on a workstation to list the local IP of the server to correspond to blah.our-domain.com, and now server logs show local IP properly.

    My question is: Is there an easier way other than modyfiying all the HOSTS files to force workstations to use the localIP rather than the wanIP for accessing the server?

  2. #2

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    The easiest thing to do is create two sites in IIS, and add host headers so that they can tell your internal and external domains apart. Set their document roots (or whatever IIS calls it) to the same location, so they appear to be the same. Then you can just configure https on one site.

  3. #3

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,689
    Thank Post
    516
    Thanked 2,455 Times in 1,899 Posts
    Blog Entries
    24
    Rep Power
    833
    I'd create a DNS entry for your domain (ie. spoof the domain) on your DNS servers, pointing it at the local ip instead of the external ip.

  4. Thanks to localzuk from:

    RabbieBurns (6th October 2008)

  5. #4

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Or you could do that...

  6. #5

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,521
    Thank Post
    1,333
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    Quote Originally Posted by localzuk View Post
    I'd create a DNS entry for your domain (ie. spoof the domain) on your DNS servers, pointing it at the local ip instead of the external ip.
    Thats the lines I was thinking along. Not quite sure how to go about it though. would I need to create a new Forward Lookup Zone called our-domain.com and add a record in that ?

  7. #6

    localzuk's Avatar
    Join Date
    Dec 2006
    Location
    Minehead
    Posts
    17,689
    Thank Post
    516
    Thanked 2,455 Times in 1,899 Posts
    Blog Entries
    24
    Rep Power
    833
    Quote Originally Posted by RabbieBurns View Post
    Thats the lines I was thinking along. Not quite sure how to go about it though. would I need to create a new Forward Lookup Zone called our-domain.com and add a record in that ?
    Yep. That's how I do it with our school site.

  8. Thanks to localzuk from:

    RabbieBurns (6th October 2008)

  9. #7

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,521
    Thank Post
    1,333
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    Sorted. Cheers.

  10. #8

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,521
    Thank Post
    1,333
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    oops. Forgot to add a record for the www and mail subdomains which are hosted externally and have stopped working.

SHARE:
+ Post New Thread

Similar Threads

  1. [CLOSED] Misc: Our hosts went down
    By Dos_Box in forum EduGeek.net Site Problems
    Replies: 18
    Last Post: 18th April 2008, 09:52 AM
  2. Web hosts
    By TronXP in forum Web Development
    Replies: 17
    Last Post: 12th February 2008, 09:23 AM
  3. Web Hosts
    By thom in forum Recommended Suppliers
    Replies: 11
    Last Post: 19th October 2007, 09:28 AM
  4. Replies: 2
    Last Post: 30th May 2007, 08:10 PM
  5. Question about DNS records
    By Kyle in forum Windows
    Replies: 1
    Last Post: 20th May 2007, 11:21 AM

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
  •