Forum Moderators: phranque

Message Too Old, No Replies

IIS DNS Setup

         

Frank

4:09 am on Apr 27, 2002 (gmt 0)



I have a IIS on Windows 2000 Advanced Server. The server is behind the firewall. I set up Primary server as ServerName.domainname.com in SOA tab of DNS. In IIS, Host Header Name has been set up as www.domainname.com. When I use www.domainname.com, it does not connect to my web site. If I use the IP address, I can get to my website. Do I miss anything in the setup?

Thanks!

txbakers

4:14 am on Apr 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Since you are behind the firewall, your www.domain.com is trying to resolve itself to the external IP address, and of course it can't find it from behind the fireall.

You need to set up your hosts file with the local IP which resolves to the domain name.

Do a search on your C drive for "hosts" no extension!

When you edit the file, be sure to save it with no extension as well.

turnerb

6:51 pm on Jun 24, 2002 (gmt 0)



I have the exact same problem as Frank :

"The server is behind the firewall. I set up Primary server as ServerName.domainname.com in SOA tab of DNS. In IIS, Host Header Name has been set up as www.domainname.com. When I use www.domainname.com, it does not connect to my web site. If I use the IP address, I can get to my website."

I've setup my hosts file to reflect my local IP resolving my domain name and it still doesn't work. I'm getting really frustrated - any ideas ?

richlowe

7:06 pm on Jun 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've run into this (or something similar). I set the firewall to route (using NAT) from my external address to my internal address for the web server. The DNS server has only external address host records. To get to the web server from INSIDE the firewall, I had to create hosts files for my systems. From outsite, it all works fine using the domain. The host header has to be set to the www.blahblah.com name. I also found it didn't take until I restarted IIS after setting the host header.

I hope that helps.
Richard Lowe