[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 468
  • Last Modified:

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
0
cesemj
Asked:
cesemj
  • 5
1 Solution
 
BCipolloneCommented:
So your Hosting site is set to forward all traffic for Test.com to your external IP correct?  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.  Perhaps you are just missing a CName in your DNS that points test.com to the ip?
0
 
cesemjAuthor Commented:
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.
0
 
cesemjAuthor Commented:
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
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
irweazelwallisCommented:
do you have the host headers configured on the website
0
 
cesemjAuthor Commented:
I will update you all this evening when I can access the site and IIS.

Thanks
0
 
cesemjAuthor Commented:
Hello,

I would like to keep this open for another week before closing, but I have had a couple of emergences. Sorry.
0
 
cesemjAuthor Commented:
Sorry, I thought I assigned the points a long time ago, Sorry and thank you again for your help.
0

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now