Solved

can't connect to home webserver

Posted on 2010-11-11
11
576 Views
Last Modified: 2012-05-10
Hi,

I'm wondering why I can see my site on my Centos home server here:
http://seokingdomheaven.com

(it's just a test right now)

Yet I can't see it on my vista laptop. It's on the same lan but that shouldn't have anything to do with it, should it? It times out on my vista.
0
Comment
Question by:Victor Kimura
11 Comments
 
LVL 7

Expert Comment

by:compaqus
ID: 34112357
I can't see it.

Is your router forwarding  requests on 80 to the centos machine?
0
 
LVL 7

Expert Comment

by:compaqus
ID: 34112397
Can you see it from your LAN?
Is 96.49.230.250 your public IP address? (DNS set up properly?)
0
 
LVL 14

Assisted Solution

by:Monis Monther
Monis Monther earned 125 total points
ID: 34112647
please use your Internal IP when connecting from your VIsta machine not the DNS name

put this in the browser

http://192.168.1.6/

If you want to use it by the hostname you must add the host in your wnidows hosts file.

You can only use the DNS name from outside your network because you do not have a local DNS
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Victor Kimura
ID: 34112854
Hi compaqus,

Yes, the port if forwarded on my router. I guess the DNS hasn't propagated yet. I used Dyndns.

BTW, how do you find that the site's IP is 96.49.230.250?

This is my home server's address:24.84.77.119

To small_student,

Sorry, I wasn't clear. I have my Centos (home server) and Vista (laptop) on the LAN. I'm running the web server from the Centos. So when I type in http://seokingdomheaven.com from my Centos machine I see the page properly. It's as if the Centos isn't leaving the LAN and going through a reverse DNS checkup to get to my server again. But when I type in http://seokingdomheaven.com on my Vista laptop the server isn't found which makes sense since the IP hasn't propogated properly yet.

Why can the Centos find the site?
0
 
LVL 7

Assisted Solution

by:compaqus
compaqus earned 250 total points
ID: 34112926
Go start -> run cmd
nslookup seokingdomheaven.com

 I assume the domain is added in /etc/hosts file on the centos server.
0
 

Author Comment

by:Victor Kimura
ID: 34113842
I get this:
nslookup seokingdomheaven.com
Server:         192.168.1.1
Address:        192.168.1.1#53

Non-authoritative answer:
Name:   seokingdomheaven.com
Address: 96.49.230.250

It's pointing to the incorrect ip though. It's the old one.

There's nothing in my /etc/hosts file.

It's odd that the site shows up on my Centos machine but not my Vista laptop. Any ideas?
0
 
LVL 7

Assisted Solution

by:compaqus
compaqus earned 250 total points
ID: 34114297
Centos looks in the /etc/hosts file before using the name servers. If the IP or the name is not found there, it will ask the DNS.

The /etc/hosts should contain at least a "localhost" line, otherwise some programs that connect to the system via localhost will fail.

Are you sure it's empty?

If we rule out the /etc/hosts, the only way Centos would resolve and Vista wouln't is if the OS are using different domain name servers
0
 
LVL 12

Assisted Solution

by:mccracky
mccracky earned 125 total points
ID: 34121571
If you've defined the CentOS machine hostname as seokingdomheaven.com it will probably be using localhost to show the site.  As mentioned, you need to look at the /etc/hosts file on the CentOS machine to see what's there.  From linux, the name resolution checks first the /etc/hosts file and then uses the /etc/resolv.conf nameservers.  
0
 

Accepted Solution

by:
Victor Kimura earned 0 total points
ID: 34130361
I was updating the wrong dns server. I was updating the ip at dyndns and the dns is located at zoneedit. Thank you for your help everyone. I really appreciated it. =)
0
 
LVL 7

Expert Comment

by:compaqus
ID: 34130688
Glad you've sorted it out!
0
 

Author Closing Comment

by:Victor Kimura
ID: 34182539
it's the answer
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

680 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question