LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2012, 07:50 AM   #1
jmzcons
LQ Newbie
 
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18

Rep: Reputation: 0
Why is my website pointing to my local lan ip address


Got Redhat 9 installed on Dell Poweredge 1600. Was working as www.jmzcons.com but can now only see my website as http://192.168.0.103. Plase help
James
 
Old 07-20-2012, 07:57 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
why on earth are you running redhat 9?? It's ancient.

What do you mean by only see? What are you doing? what happens if you use the domain name? what network architecture are you runnign this under?
 
Old 07-20-2012, 08:11 AM   #3
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
I think you are talking about apache webserver. I think you created a web page and you want to access it via www.jmzcons.com instead of IP. I think it may be a DNS problem.
 
Old 07-20-2012, 08:43 AM   #4
jmzcons
LQ Newbie
 
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by uk.engr View Post
I think you are talking about apache webserver. I think you created a web page and you want to access it via www.jmzcons.com instead of IP. I think it may be a DNS problem.
Maybe so. But I am not sure how DNS is link to the ip address
 
Old 07-20-2012, 08:45 AM   #5
jmzcons
LQ Newbie
 
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
why on earth are you running redhat 9?? It's ancient.

What do you mean by only see? What are you doing? what happens if you use the domain name? what network architecture are you runnign this under?
I am running redhat 9 because it works for me and my website www.jmzcons.com works well once before but now
I can only see my website if I call up 192.168.0.103 instead
 
Old 07-20-2012, 08:51 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
can you provide some new information as requested?
 
Old 07-20-2012, 09:06 AM   #7
jmzcons
LQ Newbie
 
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
can you provide some new information as requested?
when I call up my website at 192.168.0.103, it will response with my website. But not with www.jmzcons.com
DNS report for jmzcons.com shows no NS for record A. Not sure what else to do
 
Old 07-20-2012, 09:10 AM   #8
jmzcons
LQ Newbie
 
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
why on earth are you running redhat 9?? It's ancient.

What do you mean by only see? What are you doing? what happens if you use the domain name? what network architecture are you runnign this under?
When I call the domain name www.jmzcons.com
I get a reply back that the connection is timed out
 
Old 07-20-2012, 09:14 AM   #9
jmzcons
LQ Newbie
 
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jmzcons View Post
When I call the domain name www.jmzcons.com
I get a reply back that the connection is timed out
I have a Dlink Dir 655 router connected to a bunch of pc's and one of them being a dell with the linux redhat 9
and use dhcp.
 
Old 07-20-2012, 09:49 AM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Your website isn't "pointing" anywhere. Your webserver is listening for any incoming connections on port 80, and responding with your web page. The reason you can't access it through the domain is DNS. When anybody types in a domain, DNS tells the computer the actual location of that website (the IP address of the computer hosting it). Your DNS for jmzcons.com isn't configured properly, so when somebody types in that domain, they are not being directed to the location where that website actually sits (your Dell box).

1-point the DNS for your domain to your router's public IP address
2-set your Dell up with a static IP on your local network
3-forward port 80 to your Dell's IP in your router config

Last edited by suicidaleggroll; 07-20-2012 at 10:08 AM.
 
Old 07-20-2012, 12:49 PM   #11
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

when you will set DNS for your domain (the public IP address you have your router connected)
then set the PORT FORWARDING to your server IP 192.168.0.103

setup like here
 
Old 07-20-2012, 05:21 PM   #12
jmzcons
LQ Newbie
 
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18

Original Poster
Rep: Reputation: 0
In my router config, followed instructions as per your setup attached in Advanced( Virtual Host) to 192.168.0.103 using public 80 and private 80
saved and still the same
 
Old 07-20-2012, 05:27 PM   #13
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
You still need to point your domain to your network's public IP address.

It sounds like you've only done the third of the three steps I listed. Two more to go.
 
Old 07-20-2012, 06:03 PM   #14
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well the domain resolves so I'd guess that OP doesn't appreciate that he's on a dynamic IP?
 
Old 07-20-2012, 06:58 PM   #15
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by acid_kewpie View Post
well the domain resolves so I'd guess that OP doesn't appreciate that he's on a dynamic IP?
I see it does not !
Quote:
MX Error MX Records Oh well, I did not detect any MX records so you probably don't have any and if you know you should have then they may be missing at your nameservers!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can ssh into host on lan using WLAN address, but not through LAN address gurkakrieg Slackware 4 01-05-2010 08:19 AM
www ilo local ip to access website on lan tryangle Linux - Networking 9 09-18-2009 10:11 PM
Localhost pointing to default page if I don't specify the port number in the address rajaoLQ Linux - Server 6 08-24-2009 03:52 PM
Local LAN IP address suddenly changed MasterOfTheWind Linux - Networking 4 10-22-2008 11:28 AM
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration