LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-01-2006, 03:42 PM   #1
Tear Syden
LQ Newbie
 
Registered: Mar 2006
Posts: 20

Rep: Reputation: 0
Network server not viewable from inside network using domain name.


Okay, I've looked and looked and I cannot find anything in relation to this subject.

I am new to linux although I have been running a simple apache server for the past few months. I am running Fedora Core 4 i386 on the server and Smoothwall Express on my firewall/router.

When on any of my windows computers (or anything else on the network) and I type in the address of my website ie example.com into the address bar, I cannot access the website. Instead, it times out and gives me the 'page cannot be found' error.

I know part of this is due to 'example.com' pointing to my IP address, which in the case of the computers on the network, is like typing in 192.168.1.1:80. I need some help setting up BIND or whatever it is that is required to run a website off a home network and still be able to view the website from inside the network without having to type its IP address into the address bar each time (which does work, by the way).

I could greatly use the help,

Thanks.
 
Old 11-01-2006, 04:29 PM   #2
bernied
Member
 
Registered: Mar 2006
Location: Edinburgh, UK
Distribution: debian
Posts: 304

Rep: Reputation: 30
A simple fix is to add the linux box's name to the lmhosts file of each Windows machine. You'll find the file with a search, it's in some crazy windows location. There's a lmhosts.sam file which is a sample and has some instructions. The format is basically the same as /etc/hosts in linux.

I think you can add fairly complex names here - like
192.168.0.10 www.mysite.com
then whenever you try to access www.mysite.com, it will go for that IP instead.
 
Old 11-02-2006, 10:32 AM   #3
Draciron
Member
 
Registered: Jul 2006
Posts: 44

Rep: Reputation: 16
Use the hosts file. Setting up bind is an uncessary complication. The poster ahead of me gave you a good run down on how to configure the hosts file.

Ping the IP of the machine you are trying to reach and confirm that the machine you are trying to reach has the IP you think it does. Under Linux as root do ifconfig to see your ip information. If the machine is duel homed it'll have 3 or 4 entries. The eth0 and eth1 are the ones your interested in. Once you can ping it and reach it by IP with your browser then add the ip to your hosts file and you can then type the name in instead. Also you want to give the apache server (edit the httpd.conf file) the same name as you name the server.

If you can't ping the machine by IP then you have a problem with the networking. This could be caused by several problems. If you can ping the machine but cannot reach it by IP with your browser then you may be blocking port 80 in your server's firewall. If your using Fedora or a GUI firewall builder it's easy to allow incoming web hits. Otherwise you have to edit your IPtables configuration. Another possible problem is that your Apache server is not actually running or not listening to outside connections or thinks it should answer to another name. That's easy to fix by checking your apache.conf file. The location of it can be alot of places depending on distro and whether you installed by rpm, yum, tarball and whether you specificed the installation dir when you did. I for example like to create an entire seperate partition for my web severs. Makes backups and extending space using LVM fairly easy it it's own partition.
 
Old 11-03-2006, 03:15 AM   #4
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
try this if it works

I am assuming that you are host is localhost

then try this in your browser hope it works

http://localhost
 
Old 11-03-2006, 12:51 PM   #5
Tear Syden
LQ Newbie
 
Registered: Mar 2006
Posts: 20

Original Poster
Rep: Reputation: 0
No, the server's ip on my network is 192.168.1.11 and if I type that into the address bar it works fine. If you type the URL of the server (dragontech dot game-host dot org) then it does not work INSIDE the network. If you are outside of the network it works just fine.
 
Old 11-04-2006, 06:17 AM   #6
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL, Ubuntu, Fedora
Posts: 368

Rep: Reputation: 29
If the BIND Package is install

are you using the BIND package if yes then I could writte you the complete configuration of your BIND Package


thanks
 
  


Reply



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
Cannot ssh inside my network cucolin@ Linux - Networking 16 07-24-2006 09:34 AM
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 05:55 PM
Can't ping inside network samus8zero2x Linux - Networking 11 09-21-2004 10:18 AM
Connection to remote FTP server which has the same domain name as my network dws Linux - Newbie 2 05-26-2004 08:39 AM
Linksys WAP54G Inside the network? cupboardguy Linux - Wireless Networking 1 02-24-2004 01:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:28 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