Can't reach my webserver from LAN but from WAN works fine
I have a webserver setup. All the port forwarding and everything is done on the router. When I access the server from the outside my network, it is working fine. When I am inside the network it is not working. It just goes to the
login page of the router. Below are my setting.
Windows 2008 R2, AD, DNS, IIS
I believe it is a DNS issue, when the request is made it not getting my webserver.
Anyone know how to achieve this in the DNS side to get this done.
Thanks
October 26th, 2010 12:54pm
Is the website internal? If it is internal then you need to create an A record in the DNS zone for the website that points to the IP address of your internal webserver.
If external then you would need to go into your DNS zone create an A record call it www then put IP address of the external IP address of the webpage
Free Windows Admin Tool Kit Click here and download it now
October 26th, 2010 5:12pm
I have a webserver setup. All the port forwarding and everything is done on the router. When I access the server from the outside my network, it is working fine. When I am inside the network it is not working. It just goes to the
login page of the router. Below are my setting.
Windows 2008 R2, AD, DNS, IIS
I believe it is a DNS issue, when the request is made it not getting my webserver.
Anyone know how to achieve this in the DNS side to get this done.
Thanks
Your bindings in IIS aren't configured correctly... or you do not have DNS entries for intranet access. Leaving your traffic to route through your router first because external DNS settings point to your public IP that point 80 traffic to your web server.
The IIS Bindings: Must be configured for both internet DNS and internal DNS because it only provides the site content in response to traffic searching for the provided website.
www.contoso.com
dc1.contoso.local - 192.168.0.10
ADDS, DNS
mem1.contoso.local - 192.168.0.11
IIS
DC 1 Configuration
Contoso.Local DNS records
Add additional Primary Zone for Contoso.com - Disable automatic updates on this Zone.
DNS A ptr, www @ 192.168.0.11
Also... just adding the server and allowing Dynamic updates... it can update additional sites from IIS for you using the same domain name without intevention but be careful with the dynamic updates. Observe it for a day or two before disabling the updates
to make sure they aren't going goofy on you.
External Contoso.com DNS records
DNS A ptr, @ > Public IP
DNS Cname, www > @
MEM 1 Configuration
Website1
Binding: www.contoso.com @ *:80
Binding: www.contoso.local @ *:80
That's the basic configuration. Alternatively to creating a second Internal Primary Record for Contoso.com, you can ADD the binding... Try adding the correct binding.
When you add virtual directories, those follow the server name... so make sure you add the site.
Otherwise your intranet site is server/vdirectoryname.
I'm not an IIS Expert but that's been my analysis on how it has behaved for me. I'm sure it's fairly accurate but some pieces may not be. You can alternative post this question @ iis.net which is Microsoft's official IIS site.
Steve Kline
Microsoft Certified IT Professional: Server Administrator
Microsoft Certified Product Specialist
Microsoft Certified Network Product Specialist
This posting is "as is" without warranties and confers no rights.
October 26th, 2010 5:21pm