On Monday, April 04, 2011 11:37:19 PM Ralph Corderoy wrote:
> Hi Terry,
> 
> > Maybe my memory is faulty, but my recollection of doing this on
> > earlier Unix systems, (like Solaris), is that the hostname went into
> > the file called hostname (or similar) and that did it (after a
> > reboot).
> 
> Debian/Ubuntu still have that.
> 
>     $ cat /etc/hostname
>     orac
>     $ hostname
>     orac
>     $ hostname -f
>     orac
>     $
> 
> Note, the -f output is wrong here, I haven't got it to be correct yet
> which is annoying as some programs, e.g. postfix, rightly expect it to
> be a fully-qualified domain name (FQDN).
> 
> Cheers,
> Ralph.
FC14 seems to use the /etc/sysconfig tree to hold this kind of info....
/etc/sysconfig/network:HOSTNAME=myhostname
& /etc/rc.sysinit reads the sysconfig tree
Regards
Andy

--
Next meeting:  Bournemouth, Tuesday 2011-04-05 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
How to Report Bugs Effectively:  http://goo.gl/4Xue

Reply via email to