LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-27-2001, 02:33 AM   #1
aeshley
LQ Newbie
 
Registered: Dec 2001
Location: Australia
Distribution: Red Hat 7.3
Posts: 27

Rep: Reputation: 15
Question domain name within intranet


hi

i'm a newbie and need a little help...

i have set up a red hat linux box within a windows network as a web server. the web server can only be accessed within the local network.

using a web browser on a windows machine i can access the web files i wish to by entering the ip address as the url. however, i would like to be able to enter a domain name (e.g. linux.work.local) instead. could anybody out there please tell me how i could set up the linux box to allow this?

thanks in advance for any help!

ashley
 
Old 12-27-2001, 03:29 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
you could configure apache in your httpd.conf file to do this... if your going to have the linux box host the web server...
 
Old 12-27-2001, 03:48 AM   #3
aeshley
LQ Newbie
 
Registered: Dec 2001
Location: Australia
Distribution: Red Hat 7.3
Posts: 27

Original Poster
Rep: Reputation: 15
the web server has been configured using apache. i just used the default red hat installaed apache package and did a little tweaking.

within the /etc/httpd/conf/httpd.conf file i have the following:
ServerName linux.work.local
ServerAdmin root@localhost
Listen 192.168.0.6:80
Port 80

i can access my web files using http://192.168.0.6 from a windows box browser, but not http://linux.work.local
 
Old 12-27-2001, 12:59 PM   #4
Maxis
LQ Newbie
 
Registered: Dec 2001
Posts: 4

Rep: Reputation: 0
If you want to access your apache server using something like http://name.of.your.server/. You should place in your c:\windows\hosts file line like this
192.168.0.6 name.of.your.server
If you have 1-3 windows machines it will be easear to so rather then setup BIND on the linux
 
Old 12-27-2001, 07:14 PM   #5
aeshley
LQ Newbie
 
Registered: Dec 2001
Location: Australia
Distribution: Red Hat 7.3
Posts: 27

Original Poster
Rep: Reputation: 15
tried hosts file within a windows 2000 machine (in both C:\WINNT and C:\WINNT\system32\drivers\etc directories), but still won't find my site. may have to stick to typing in ip address.
 
Old 12-30-2001, 09:14 PM   #6
infinity6
Member
 
Registered: Dec 2001
Posts: 66

Rep: Reputation: 15
You probably need to set the hostname for the linux machine as well. The easiest way to change hostname is to type at a command prompt, as root:

hostname <hostname you want>

If you want to be absolutely sure the change is made, edit /etc/sysconfig/network and set HOSTNAME=<hostname you want>

Now issue:

service network restart

and now when you type hostname you will see <hostname you want.>

A good practice is to also edit /etc/hosts and enter a line for your local system. DO NOT ERASE THE EXISTING ENTRY. Doing so will render most of your daemons inoperative. Just follow the existing syntax and add a new entry with your ip address. Hope that helps.
 
Old 01-02-2002, 01:46 AM   #7
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Rep: Reputation: 15
hmmm,.....can you have more then 1 hostname for 1 ip?
 
Old 01-02-2002, 03:03 AM   #8
infinity6
Member
 
Registered: Dec 2001
Posts: 66

Rep: Reputation: 15
As far as the hostname of the machine for itself (per setting it with the HOSTNAME command), no. You can only have (correct me, someone, if I'm wrong) one hostname that your machine uses. You can set-up multiple hostnames in /etc/hosts and DNS.
 
Old 01-02-2002, 05:41 PM   #9
Maxis
LQ Newbie
 
Registered: Dec 2001
Posts: 4

Rep: Reputation: 0
Happy new year!

Try to do this it should work. I've just tried this.

On win2k machine in the file c:\winnt\system32\drivers\etc\hosts you should place thease lines:
127.0.0.1 localhost
192.168.0.6 linux.work.local
Save it. Open command prompt window and type this ping linux.work.local
It should answer something like this:
Pinging linux.work.local [192.168.0.6] with 32 bytes of data:

after this if your linux box is online you should receive:
Reply from 192.168.0.6: bytes=32 time<1ms TTL=128
Reply from 192.168.0.6: bytes=32 time<1ms TTL=128
Reply from 192.168.0.6: bytes=32 time<1ms TTL=128

Then you can try to access http://linux.work.local/ from you brouser

Good luck!

Last edited by Maxis; 01-02-2002 at 05:42 PM.
 
  


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
what would make ever virtual domain name resolve to one domain name on my system kuplo Linux - Newbie 1 11-14-2005 07:57 PM
Cant get entry in bind to work with domain.com instead of www.domain.com pxes351 Linux - Networking 12 05-09-2005 07:20 AM
Using Linux as a domain controller for a W2K3 domain. Passive Linux - Networking 3 01-28-2005 07:01 PM
What makes an intranet an intranet? pembo13 Linux - Networking 3 06-21-2004 09:20 PM
Joining a machine from another domain to my linux samba domain acummins Linux - Networking 0 09-13-2003 08:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:11 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
Open Source Consulting | Domain Registration