1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

website can only be accessed by http, and not www

Discussion in 'DD-WRT Firmware' started by techspy, Mar 10, 2006.

  1. techspy

    techspy Network Guru Member

    I recently played around with VPN on my WRT54G and now my webserver, with port 80 forwarded, isnt reachable with using www. I have to use http and then it is fine. It used to work with www before I started messing with vpn. I am using dyndns for my web name.

    Any ideas?

    Thanks
     
  2. tiagoespinha

    tiagoespinha Network Guru Member

    Ok, without going into too much details, let me try to explain you something that might be crucial for you to understand this:
    - There are domain names (google.com, linksysinfo.org etc). Through a complex process of DNS indexation, your TLD can be assigned to an IP address, so when you type on your browser google.com , it will query the DNS server that he is told to use and will ask for google.com IP address.

    As soon as it has the IP, it will connect and using the protocol http (which is the default to any web browser that I know of) and fetch the page to then present it to you. And this is where the confusion usually pops in: - if you use the www. you can access the website, and if you don't use it, you can't. This is WRONG.

    For the www.youraddy.com|.net|.org|.whatever to work, you have to create the sub-domain "www." on the DNS server that is managing your domain (usually the company that sold you the domain or the company owner of the nameservers you've set there). It's the www. sub-domain that you'll have to point to your IP address for that to work.

    Using http:// is a local designation to tell your browser "I want to access this address using the HTTP protocol", it works with most browsers without http:// because that's the protocol set by default to be used. :)
     
  3. techspy

    techspy Network Guru Member

    Ok, so you are saying it is coincidence that the www stopped working around the same time that I was messing around with vpn on my router. So I guess the problem is with dyndns? Absolutly nothing else (that I am aware of) has changed. Like I said, prior to this I could use www, http or just xxxxx.com. now either xxxx.com or http will work. The only reason this is an issue is because in many places I already had the link setup as www.xxxxxx.com.

    Thanks
     
  4. techspy

    techspy Network Guru Member

    Ok, so you are saying it is coincidence that the www stopped working around the same time that I was messing around with vpn on my router. So I guess the problem is with dyndns? Absolutly nothing else (that I am aware of) has changed. Like I said, prior to this I could use www, http or just xxxxx.com. now either xxxx.com or http will work. The only reason this is an issue is because in many places I already had the link setup as www.xxxxxx.com.

    Thanks
     
  5. Toxic

    Toxic Administrator Staff Member

    what software is your webserver using?
     
  6. tiagoespinha

    tiagoespinha Network Guru Member

    So from what I'm looking here you can debug it like this:
    1 - Ping both www.domain and just the domain from outside your network to see if both are pointing to the right IP address (which should be your network's WAN IP).
    2 - If both point for the correct IP, then check your web server's configurations because the problem will very likely be there.
    If the www. points to a wrong IP then the problem is at DynDNS. :)
     
  7. techspy

    techspy Network Guru Member

    I am using IIS built into xp pro. When I ping with www, it says host not found. Without www, it resolved the ip. I guess I will start rooting around in dyndns.

    Thanks for the help guys
     
  8. techspy

    techspy Network Guru Member

    Yep, it was a dyndns setting. I had to enable wildcard. Now all is back to normal. Not sure why this happened though...I never had wildcard enabled beffore and it was working...hhhhmmmm, maybe a change with dyndns

    Thanks again
     

Share This Page