website inaccessable on internal lan but accessable externally

pts.
Tags:
Help Desk
Networking
Tech support
Hi, i have a website hosted on our internal servers - thing is the site is not accessable anywhere on the internal lan but it is externally. The server in question doesnt have to NIC's so i had to nat the internal address, i then put a dns enter http://mysite.mydomain.com in our dns server and pointed it to the external (Nat'd) i p address. And everything works fine but i need to be able to view it internally as well !! I have checked the host headers on IIS and everything seems to be in order. So its wracking my brain trying to figure out what it is. Appreciate any and all help. Thanks Andy

Answer Wiki

Thanks. We'll let you know when a new response is added.

Have you tried going to http://[internal IP address] to see if that works? Of course if you are using a host header filter, you will not get very far this way. You could test thought by putting a local hosts entry on your workstation to point mysite.mydomain.com to the internal IP address. This way when you type http://mysite.mydomain.com in your browser it will translate to the internal IP and yet still present the proper header to the IIS server. If this works, then you will either have to make the hosts entry on all internal workstations, OR if you have separate DNS servers for External and Internal name resolution for the same zone, you could put another DNS entry in for the mysite.mydomain.com for the Internal IP address. If this is NOT the case, you could create another name for the site and use that in the header as well and put that name like myinternalsite.mydomain.com and put the Internal IP address in the DNS. You would have to tell IIS to allow this header as well or set up another site that points to the same location on the disk as the original site.

Discuss This Question: 7  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Sfitten
    We had the same problem with our website internally. However, we added a DNS entry to out internal DNS and it works fine now.
    0 pointsBadges:
    report
  • Andy11983
    Hi, Thanks for the replys - i have tried by the internal ip address and it seems to work, however by typing a url such as mysite.mydomain.com still does not work?? Any suggestions ?? Thanks again for yor help Cheers Andy
    0 pointsBadges:
    report
  • Nephi1
    Andy, If the domain mysite.mydomain.com is resolving to an external IP address (eg 203.54.23.123) instead of the internal IP address (eg 192.168.21.12) then its a DNS issue. Not a webserver issue. To fix it you could do one of the following as the others have already suggested. *Use the address http://hostname *Edit all the internal PCs' hosts file to have mysite.mydomain.com to resolve to the internal IP address *Have the DNS server have 2 records for the site. (1 external record and 1 internal). To set it up like this, I dont know how. *Or have 2 DNS servers, 1 for external use or 1 for internal use (with forwards to the external and ISP DNS servers) -- Nephi
    0 pointsBadges:
    report
  • Aftabn
    This is what you should do 1) Make sure that there is a forward lookup zone with the name "mydomain.com" without the quotes of course. 2) then make sure there is a host record with the name "mysite" (pointing to the internal IP of that machine) again without the quotes. 3) update the DNS records by right clicking on the DNS server name and clicking on "update server data files". 4) go to a command prompt and run the nslookup utility and type mysite and press enter. If it resolves to the local IP then type mysite.mydomain.com and press enter if it again resolves to the local IP then the DNS is configured properly. 5) launch the browser and type http://mysite.mydomain.com u should be able to view the site.
    0 pointsBadges:
    report
  • PeterMac
    You have had lots of good advice, but not much explanation of what is causing your problem, so here goes. 1) Current setup resolves website URL to an external IP address through your DNS Server, Problem with this is that for internal users you will be directed via your internet router to find this IP. Most routers/ firewalls will not alow access back into your network from an internl IP address, Security issue, can be changed but I would not reccomend doing so. So your access from internal PC's will be blocked by your Router/Firewall using this setup. 2) Possible to set up two entries on your DNS of form External.domain.com ... resolving to external IP address Mysite.domain,com ... resolving to internal IP address This will work to some extent, means using different URL for internal, and external access. It will fail if your website has any internal links of form External.domain.com/page. as these will always try to follow the external route, and fail for internal users. Best solution is to set up a seperate Internal DNS server, and point all internal PC's to this as their DNS server, should be set up exactly as external server, but with the entry for External.domain.com pointed to your Webservers internal IP rather than the external IP. This Internal DNS server should be setup to forward requests to the existing external server, it will only do this if it cannot resolve a name itself. Hope above makes things clearer for you.
    15 pointsBadges:
    report
  • PeterBMartin
    We all seem to have forgotten to ask the obvious question so here goes. Is your internal DNS authoritative for your domain? i.e. is it only for internal use, with your ISP really hosting the authoritative DNS? If it is only for internal use then simply point www.myhost.mydomain.com record in the internal DNS to the internal IP address.
    0 pointsBadges:
    report
  • Dimante
    Where is the DNS server that holds your records? Is it a windows based server?
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following