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 |
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'. |
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 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. |
Thank you all, the info was very helpful!
|
Quote:
|
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? |
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.
|
It wont work until you have real names to work with. If your testing setup dns or /etc/hosts.
|
All times are GMT -5. The time now is 12:23 PM. |