cannot hit website without www

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

I am posting this in IIS as well as this newsgroup since both are required
for the process.

Problem:

I am able to type www.domainname.com and hit my website but I cannot type
just domainname.com (returns page cannot be displayed error).

I am hosting multiple websites on a single server by using Host Headers.
For each website I have a reference in IIS to www.domainname.com and just
domainname.com. In DNS I have a zone created for each website and in each
website is an alias record for www. I know I am missing something basic
here but I can't recognize it


TIA
 
I created an empty host record "Same as parent" is what appears but this
still has not resolved issue. I am correct about the hostheader though
right? I do need one for each way I want someone to be able to type the
url.

Yes, if you have two host headers:

www.domain.com and
domain.com

then it should work. Did you restart the name server after you made the
change? There are only two cogs in this system: the DNS server and the IIS
server--if it's not working, double-check both.

Cheers

Keith
 
I am posting this in IIS as well as this newsgroup since both are required
for the process.

Well, sort of. But a Google of either group would answer your
question quicker anyway... :)
Problem:

I am able to type www.domainname.com and hit my website but I cannot type
just domainname.com (returns page cannot be displayed error).

I am hosting multiple websites on a single server by using Host Headers.
For each website I have a reference in IIS to www.domainname.com and just
domainname.com. In DNS I have a zone created for each website and in each
website is an alias record for www. I know I am missing something basic
here but I can't recognize it

A blank host for the zone pointed to the IP address will resolve the
domain only to the web server. A second host header with just the
domain (no "www") will point the browser to the correct site on the
server.

Jeff
 
In Fred <[email protected]>
posted their concerns,
Then Kevin D4Dad added his reply at the bottom.
I am posting this in IIS as well as this newsgroup since both are
required for the process.

Problem:

I am able to type www.domainname.com and hit my website but I cannot
type just domainname.com (returns page cannot be displayed error).

I am hosting multiple websites on a single server by using Host
Headers. For each website I have a reference in IIS to
www.domainname.com and just domainname.com. In DNS I have a zone
created for each website and in each website is an alias record for
www. I know I am missing something basic here but I can't recognize
it


TIA

Would this DNS server be on a DC?
This is the default behavoir fo DC's to create a blank host for each IP
address on the machine to stop this behavior use regedt32 to add this:

Key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters

Registry value: DnsAvoidRegisterRecords
Data type: REG_MULTI_SZ
Value: LdapIpAddress

Then add the relevant Blank host with the public IP of the web site you may
have to also delete the blank hosts with the private addresses.
If you want to read about this here is the KB: 295328 - Private Network
Interfaces on a Domain Controller Are Registered in DNS
http://support.microsoft.com/?id=295328
 
Back
Top