Solved

can't connect to home webserver

Posted on 2010-11-11
11
571 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
Comment Utility
I can't see it.

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

Expert Comment

by:compaqus
Comment Utility
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:small_student
small_student earned 125 total points
Comment Utility
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
 

Author Comment

by:Victor Kimura
Comment Utility
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
Comment Utility
Go start -> run cmd
nslookup seokingdomheaven.com

 I assume the domain is added in /etc/hosts file on the centos server.
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 

Author Comment

by:Victor Kimura
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Glad you've sorted it out!
0
 

Author Closing Comment

by:Victor Kimura
Comment Utility
it's the answer
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now