Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-25-2003, 11:31 PM   #1
LQ Newbie
Registered: Jan 2003
Location: Norway
Distribution: RedHat 8.0
Posts: 1

Rep: Reputation: 0
Question Understanding hostname/domain name


I have a bit trouble understanding the concept of hostname and domain name.

I'm setting up a small network with 2 Windows computers and a Linux server. The Linux server is running Apache, Mysql and Samba.

The names used are just examples, to keep it simple and general.

The Windows PCs are named PC1 and PC2 and is member of the same workgroup called WORKGROUP.

What should the hostname and domain name of the Linux server be? Is there anything that I should think of in order to make Windows and Linux communicate better or easier?

I have registered a dynamic DNS name, and it should point to the Linux server. How does this affect the hostname/domain name of the linux server?

Anyway, thanks for any input!

Last edited by SpaceGroove; 01-25-2003 at 11:32 PM.
Old 01-26-2003, 06:30 AM   #2
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
If you are using windows workgroups it's not really the same as a domain. To connect to windows machines using windows networking you need to setup samba. The smb.conf file for samba has the workgroup setting in it. If you use windows networking you can access it by the netbios name. It would be the same as accessing any windows machine with network neighborhood.

As far as domain goes this is totally different. To have a domain you would need to have an ip address that will resolve to the domain. This requires a dns server. If you have registered a domain name and set it to your machines ip address, then the machine can be accessed by the domainname.

If you are just doing workgroup networking then you just need to setup samba. You can leave the domainname on the linux box set to localdomain.

The hostname can be anything you choose. If you want other machines to access the hostname by dns using a browser or other tcpip connection you need dns. Or manual client configuration would be required, using the hosts file

Last edited by DavidPhillips; 01-26-2003 at 06:32 AM.
Old 01-26-2003, 06:42 AM   #3
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Here is an example

I have a domain that is registered to linux boxes ip.

from the internet you will always access the linux box no matter what name you put in front of it


all of these will point to the same ip address, because that's all I have.

Locally I can use dhcp to setup all other machines to have a lan address and use a dns server to make each name point to the right machine. The local machines will need to be using my dns server for this to work.

all of these locally would access the machine with that hostname

Last edited by DavidPhillips; 01-26-2003 at 06:44 AM.


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
Changing Hostname to Domain Name mikebua56 Linux - Newbie 1 11-06-2005 07:53 PM
What is the difference between domain name and hostname? davidas Linux - Newbie 9 04-23-2004 02:38 PM
Wrong Hostname in a MS Domain Zeb Linux - Networking 0 03-16-2004 04:32 AM
Want to set up a new domain name and hostname? hamster Linux - Networking 6 04-06-2003 01:04 PM
hostname vs domain racediver007 Linux - Newbie 5 03-20-2003 04:30 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:49 PM.

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