LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-02-2003, 09:05 AM   #1
mikew101
LQ Newbie
 
Registered: Dec 2002
Location: Dallas Texas
Distribution: Red Hat
Posts: 8

Rep: Reputation: 0
apache and dns


My Dns server points to my web servers ip address.
My only problem is that when trying to view my web site from another computer I can never connect to my website.

I have apache configured and on my web server if I enter my ip address I can see the web site. If i put mydomain.com as the address in mozilla on my webserver then it still shows the web site. I think maybe this is because the files are local. My connection is a DSL line. The apache server is set to listen like this
Listen 1.2.3.4.5:80

Is it the ports fault that no other computer besides the web server can view the site? Any help would be much appreciated.
 
Old 07-02-2003, 12:45 PM   #2
MRK
Member
 
Registered: Jan 2002
Posts: 60

Rep: Reputation: 15
My first question is if you can view the website from another computer using it's external ipadderss? If you can, then its a dns problem.

You must have 2 external dns servers that point your domain name to your external ipaddress. You must then list both of these dns servers in the nameserver portion of your domain name registration.

If that is setup correctly, the only other thing that i would check is to make sure if your connected through a firewall or router, make sure you have either the server put in a dmz or have some sort of port forwarding.

Also, you might try serving on a differnt port. My PERSONAL cable service blocks port 80. This dissalows me from running a webserver. I can however serve on port 8080 or any port besides 80.

Hope you get up and going!

-Mr.K
 
Old 07-03-2003, 09:57 PM   #3
mikew101
LQ Newbie
 
Registered: Dec 2002
Location: Dallas Texas
Distribution: Red Hat
Posts: 8

Original Poster
Rep: Reputation: 0
Well I have my DSL Modem connected to hub. My laptop and webserver both share the dsl connection through the hub. I reconfigured the apache server to listen to both port 80 and 8080. If I use my laptop which is connected to the internet through the same hub as the webserver and enter the ip address of the webserver I can not see the website. I get an error page. I don't think that the webserver is behind a firewall. The webserver is running Red Hat 9 and unless a firewall is automatically started then I did not install or turn one on. The hub is a netgear 8 port 10 megabit hub.
 
Old 07-03-2003, 09:58 PM   #4
mikew101
LQ Newbie
 
Registered: Dec 2002
Location: Dallas Texas
Distribution: Red Hat
Posts: 8

Original Poster
Rep: Reputation: 0
By the way I have 5 dns servers and I know that they are working correctly network solutions the company I purchased the domain from knows the ip address of all the dns servers.
 
Old 07-04-2003, 12:32 AM   #5
MRK
Member
 
Registered: Jan 2002
Posts: 60

Rep: Reputation: 15
Your first problem is that you are using a hub. Do you get more than one external ip address from your dsl provider? Most people only get one external ip address. They then stick some sort of a router (i perfer hardware routers) between the modem and the copmuters. The router takes the external ipaddress and gives your two internal computers internal ip addresses.

If you are like most people, you only get one ip address. This means that either your laptop or your webserver has an ip address. Therefor, only one at a time can get on the internet. I would guess that your laptop has this external ipaddress and your webserver doesnt have one. This is why you cant access it.

If you do get more than one ip address from your dsl provider, i would suspect either your network settings are messed up on the linux server or there is some sort of firewall blocking those ports. Check to see if iptables or ipchains are running. I dont use redhat, so i dont know what they install by default.

Also, just because your domain name has 5 nameservers doesnt mean that the dns settings are correct. You might check the dns servers and make sure they are properly configured to point yourdomain.com to your ip address.

Let me know.

-Mr.K

Last edited by MRK; 07-04-2003 at 12:33 AM.
 
Old 07-04-2003, 11:53 AM   #6
pkoebbe
LQ Newbie
 
Registered: Jun 2003
Location: Missouri, USA
Distribution: Debian (Knoppix), SuSE 8.1
Posts: 21

Rep: Reputation: 15
One other possibility you might want to check is that the router is set to port-forward UDP as well as TCP for DNS requests. I had just set up my DNS server a couple of weeks ago, and it was working beautifully in my private LAN, but then I tried it from work and it didn't work. I had to enable UDP packets for the port-forwarding on my router.

Peace,
Phillip
 
Old 07-05-2003, 01:54 AM   #7
mikew101
LQ Newbie
 
Registered: Dec 2002
Location: Dallas Texas
Distribution: Red Hat
Posts: 8

Original Poster
Rep: Reputation: 0
Thank you all for your help. First I went to see if my dsl provider Verizon offered more then one external ip address. They did. So I knew it was not that. Then I checked if red hat 9 automatically has a firewall installed. It does. So I changed the settings of the firewall and the webserver is working perfectly. Thank you for you help My web server is now working great.
 
  


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
Apache and DNS Tenchi147 Linux - Software 6 06-02-2003 09:18 PM
DNS with apache SSBN Linux - Networking 1 05-01-2003 01:40 AM
dns or apache ethanchic General 7 02-07-2003 03:20 AM
dns for redhat 8.0 using apache danimaldaisy Linux - Networking 1 12-12-2002 03:33 PM
DNS and Apache! eXor Linux - Newbie 5 10-13-2002 06:29 PM


All times are GMT -5. The time now is 08:47 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration