Re: hostname?

"James K. Lowden" <[email protected]>
Newsgroups gmane.os.netbsd.help
Message-ID <[email protected]>
Jan Danielsson wrote:
>    I always thought that the first part of a FQDN is the hostname. i.e.
> 
>    c98hr92hr8.d934ryhn982.zorg.com
> 
>    ...means that the FQDN is c98hr92hr8.d934ryhn982.zorg.com and the
> hostname is merely "c98hr92hr8".
> 
>    Is this correct? I have seen people claim that "hostname" should be
> set to (in this case) c98hr92hr8.d934ryhn982.zorg.com.

You're right and they're right.  :-)

The hostname is the first element in the FQDN; in a.b.c.d, "a" is the host
and "b.c.d" is the domain.  

But you have to tell the machine, somehow, what its hostname is and what
domain it's in.  In NetBSD, that's done in one fell swoop by setting the
hostname to the FQDN.  

HTH.  

--jkl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.