As I understand it, in /etc/sysconfig/network, the line HOSTNAME=... is used by the hostname program (when networking is brought up during the boot process) to set the system's name. It's what the machine calls itself. It's not necessarily the same as the fully qualified domain name, which is what the rest of the world can call the machine. The /etc/hosts file says what IP numbers correspond to various names. If, for example, /etc/hosts in computer X has line
192.168.2.88 abc then even if the computer with IP 192.168.2.88 has done "hostname dilbert" to give itself the name "dilbert", and even if that IP is assigned to dilbert.cartoon.co.uk for domain nameservers, from computer X one may ping, ssh, telnet,... to it using name "abc", provided "hosts" is in the order line of X's /etc/host.conf -- see the host.conf man page. On Thu, 4 Jul 2002, Mark Cooke wrote: > Something that has been bothering me for a while is the hostname in RedHat. > I know this may seem like a simple question, but in > /etc/sysconfig/network, then line: HOSTNAME= > > what exactually does it mean by hostname? > Is this the FQDN or just the 'host' name? > > I take it to mean just the hostname, as in the file /etc/hosts, you > enter the alias and FQDN, ie: > > 192.168.2.88 > dilbert.cartoon.co.uk dilbert > > where as in the network file I mentioned above, you enter just the hostname: > > HOSTNAME=dilbert > > The reason I ask this is that other distros mentioned to put in the > hostname as the FQDN and others don't. > > Cheers > > Mark > > > > _______________________________________________ > Seawolf-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/seawolf-list > -- Steven Yellin _______________________________________________ Seawolf-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/seawolf-list