LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   hostname vs domain (https://www.linuxquestions.org/questions/linux-newbie-8/hostname-vs-domain-50883/)

racediver007 03-20-2003 03:02 PM

hostname vs domain
 
Can anyone give me a simple explanation of the difference between the hostname associated with the eth0 and the domain in the /home/etc file? I thought hostname and domain were the same.(?)

mhearn 03-20-2003 03:11 PM

/home/etc? what distro is this?

david_ross 03-20-2003 03:17 PM

I assume you mean /etc/hosts not /home/etc if so:

Hostnames are generally used to name computers localy on your own network. Top level domain names need to be registered and are therefir visible to all internet users with access to a DNS server. You can use the /etc/hosts or C:\windows\hosts files (locations may be different on other systems) to create easy to remember names rather than ip addresses. eg. puting:

172.17.35.58 intranet

in all your clients hosts files would let you connect to your intranet server by typing "intranet" in your browser's address bar or telneting to it rather than using a hard to remember ip.

racediver007 03-20-2003 03:22 PM

Red Hat 7.3 actually the file is /home/larry/etc/ with "larry"being the name of the software,the file is set up to accept responses or queries when sending mail(at least thats how I understand it) it is using Qmail

david_ross 03-20-2003 03:27 PM

That isn't even a file it is a directory.

Can you give an example of the file?

racediver007 03-20-2003 03:30 PM

sorry , very new at this!


All times are GMT -5. The time now is 05:31 PM.