LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-10-2005, 10:00 PM   #1
strimp099
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Fedora 12
Posts: 56

Rep: Reputation: 15
hostname and fully qualified domain name setup help


Hello,
The end result of this quest in my Linux adventures is to set up a server to talk to the world. However, I am experiencing noob type issues.

I am having trouble with my fully qualified domain name generally. When I install linux (FC2) I have an option to enter the hostname. What has that to do with the fully qualified domain name? When entering the hostname of the machine, is it mymachine, or mymachine.net, or www.mymachine.net or what? Then, when entering a FQDM (to configure Courier-IMAP for instance) is it hostname.domainname.net? I am really confused about this.

Any help?

Thank you
 
Old 01-11-2005, 01:37 AM   #2
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,279

Rep: Reputation: 61
The hostname is the name of that particular machine, for example 'workstation01' this is used to recognise that computer on a network.

The qualified domain name or workgroup name (windoze) is the name you give to a group of computers, for example 'myplace.com'. Then for that machine the full hostname for that computer will be 'workstation01.myplace.com'.

For your network lan you don't have to place a .com, .net or .org etc..... at the end of the quailified domain name, unless of course you own a domain name, then by all means you can use it.

But because it is not open to the world you can just call it 'myplace'. So your full name will be 'workstation01.myplace'.
 
Old 01-11-2005, 06:12 AM   #3
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
I have always entered the FQDN when prompted for the hostname during the redhat/FC install process. By doing so, the install script will add the proper "search" entry to /etc/resolv.conf. This also results in the following commands working properly:
Code:
[scowles@excelsior scowles]$ hostname --short
excelsior
[scowles@excelsior scowles]$ hostname --domain
mydomain.com
[scowles@excelsior scowles]$ hostname --fqdn
excelsior.mydomain.com
[scowles@excelsior scowles]$ ping defiant
PING defiant.mydomain.com (192.168.9.2) 56(84) bytes of data.
64 bytes from defiant.mydomain.com (192.168.9.2): icmp_seq=0 ttl=127 time=1.09 ms
As for the name you assign duing the install process.... I use a Startrek theme like excelsior, enterprise, voyager, reliant, etc... For the most part, the name I assign will never be used again because all the applications running on this server can be configured to use another more "meaningful" hostsname. Example:

MTA (sendmail or postfix) = mail.mydomain.com
Apache = www.mydomain.com
Samba = Register as fserv1 for MS networking and browsing. Also join MS AD domain.
etc...

Obviously, you would need to add the above names (aliases) to DNS or /etc/hosts for this to work properly.
 
Old 01-11-2005, 02:55 PM   #4
strimp099
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 15
Thank you all, the info was very helpful!
 
Old 01-11-2005, 10:31 PM   #5
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,279

Rep: Reputation: 61
Quote:
Originally posted by strimp099
Thank you all, the info was very helpful!
Glad to help
 
Old 01-11-2005, 10:31 PM   #6
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
Do you have a domain name?

Did you register a name on the internet and set it to your ip address on the registrar's site?
 
Old 01-13-2005, 11:20 PM   #7
strimp099
Member
 
Registered: Mar 2004
Location: Chicago
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 15
No, I have not even gotten that far yet. I am just experimenting with the soft/hardware of just creating a Linux server. But I am sure I will be back when I get to that point.
 
Old 01-14-2005, 10:07 PM   #8
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
It wont work until you have real names to work with. If your testing setup dns or /etc/hosts.
 
  


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
sending with exim: need fully-qualified hostname otoomet Linux - Networking 1 01-06-2005 02:55 PM
squid fully qualified hostname DutchBoy Linux - Software 2 09-08-2004 10:17 PM
Fully qualified hostname gubak Linux - Newbie 8 07-23-2004 11:56 PM
Fully Qualified Domain Name tumana Linux - Networking 4 06-10-2004 02:58 AM
need fully qualified hostname before log-in - how? BrianK Linux - Networking 7 03-12-2002 06:21 PM


All times are GMT -5. The time now is 05:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration