Link to home
Start Free TrialLog in
Avatar of cesemj
cesemj

asked on

How can I connect to a web app by dns name instead of wan ip?

Hi and thanks in advance,

I have a Win 2k8 R2 standard system running IIS 7.  The System is being used as a
standalone webserver that runs a web application that can be assessed externally.
For example, When  people go to http://Test.com they are forwarded to the wan ip
http://10.2.1.2/Timecard/Main.asp instead of http://Test.com/Timecard/Main.asp.  
I am using networkwork solutions to host the domain name and the only other option
they have is to mask the wan ip.  But when I do that I am, unable to access the site but
when I remove masking, I can access the site again.
I verified that DNS name Test.com points to the wan IP.  My problem is tht I am missing
a coulpe of basic steps and would like suggestions about how to access the webapp by dns name not wan ip


Questions:
Do I need to enable DNS and make the server a standalone domain controler?
Do I need to modify the router config? Right now all request on 80 and 443 are forwarded to the webapp server lisiting port.
Do I need to provide my ISP with the dns info I setup with network solutions?

Reference:
--------------
Server name: WebAppSvr01
IIS Config
Site Name: Default Web site
Application Pool: DefaultAppPool
Physical Path: %SystemDrive%\inetpub\wwwroot
Bindings-HTTP: 80, IP Address: *
Bindings-HTTPS: 443, IP Address: *
Server Role: file Share and IIS
ASKER CERTIFIED SOLUTION
Avatar of BCipollone
BCipollone
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cesemj
cesemj

ASKER

Hello,

So your Hosting site is set to forward all traffic for Test.com to your external IP correct?  
Yes

From there the request should hit your DNS and ask the internal IP for your Web server which should be a DNS entry for Test.com.  
Do you mean that I need to enable the dns role on the server or contact my isp to have them update dns in there system?


Perhaps you are just missing a CName in your DNS that points test.com to the ip?

I added a cname with the hosting site Alias: test.com, ttl 3600, and refers to host name www.test.com

I am going to wait for the hosting site dns to update and see what happens.  I will let you know.

Thanks again.
Avatar of cesemj

ASKER

Hi,

I modified the A Record and we are in business. I will let stand for a couple of hours to make sure.

Host       TTL       Numeric IP
www       7200       10.2.1.2
@ (None)       7200       10.2.1.2
* (All Others)       7200       10.2.1.2
Avatar of Chris
do you have the host headers configured on the website
Avatar of cesemj

ASKER

I will update you all this evening when I can access the site and IIS.

Thanks
Avatar of cesemj

ASKER

Hello,

I would like to keep this open for another week before closing, but I have had a couple of emergences. Sorry.
Avatar of cesemj

ASKER

Sorry, I thought I assigned the points a long time ago, Sorry and thank you again for your help.