[comp.unix.questions] What should 'hostname' return?

john@hopf.math.nwu.edu (John Franks) (05/27/89)

We use rrn as a news reader for several Suns running SunOs 4.0 and are
served by a machine in the local computer center.  When a user posts a
followup article his return address is set by  a  call  (I  think)  to
gethostname().   We  have  always  set this to the one word local host
name.  Thus when I post a follow  up  my  return  address  is  set  to
john@hopf.   I know I can edit it, but I would like to get the default
right.  

The manager of our news server suggested that I not hack on rrn, since
it  is  better  to  have  everyone at our institution running the same
version.  I agree (I don't want to re-install the hack  every  time  a
new version of rrn comes along).  He suggested setting hostname to our
fully qualified name; e.g.  hopf.math.nwu.edu, instead of  just  hopf.
This  fixed  the  rrn problem but broke several things with local uucp
connections.  For example, /usr/spool/uucp/D.hopf has to be changed to
/usr/spool/uucp/D.hopf.ma  and  I think our hostname in the L.sys file
of the machines we connect with has to be changed (also to hopf.ma?) 

So anyway, here's my question.  What is "hostname" supposed to return,
'hopf' or 'hopf.math.nwu.edu'?

Please respond by mail.  Thanks.  
John Franks 	Dept of Math. Northwestern University
		Internet	john@math.nwu.edu
		Bitnet		j_franks@nuacc