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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-20-2012, 07:50 AM
|
#1
|
LQ Newbie
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18
Rep:
|
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
|
|
|
07-20-2012, 07:57 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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?
|
|
|
07-20-2012, 08:11 AM
|
#3
|
Member
Registered: Apr 2012
Posts: 131
Rep:
|
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.
|
|
|
07-20-2012, 08:43 AM
|
#4
|
LQ Newbie
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18
Original Poster
Rep:
|
Quote:
Originally Posted by uk.engr
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
|
|
|
07-20-2012, 08:45 AM
|
#5
|
LQ Newbie
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
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
|
|
|
07-20-2012, 08:51 AM
|
#6
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
can you provide some new information as requested?
|
|
|
07-20-2012, 09:06 AM
|
#7
|
LQ Newbie
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
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
|
|
|
07-20-2012, 09:10 AM
|
#8
|
LQ Newbie
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18
Original Poster
Rep:
|
Quote:
Originally Posted by acid_kewpie
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
|
|
|
07-20-2012, 09:14 AM
|
#9
|
LQ Newbie
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18
Original Poster
Rep:
|
Quote:
Originally Posted by jmzcons
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.
|
|
|
07-20-2012, 09:49 AM
|
#10
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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.
|
|
|
07-20-2012, 12:49 PM
|
#11
|
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
|
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
|
|
|
07-20-2012, 05:21 PM
|
#12
|
LQ Newbie
Registered: Feb 2005
Location: Ont, Canada
Distribution: Linux Distro
Posts: 18
Original Poster
Rep:
|
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
|
|
|
07-20-2012, 05:27 PM
|
#13
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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.
|
|
|
07-20-2012, 06:03 PM
|
#14
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
well the domain resolves so I'd guess that OP doesn't appreciate that he's on a dynamic IP?
|
|
|
07-20-2012, 06:58 PM
|
#15
|
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
|
Quote:
Originally Posted by acid_kewpie
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!
|
|
|
|
All times are GMT -5. The time now is 10:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|