[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] /etc/host vs /etc/hostname



On Tue, Jun 29, 1999 at 04:48:36PM +0300, Martin-Eric Racine wrote:
> Hello everyone,
> 
> when reading the ncftp source, I found the explanation:
> 
> It seems that /etc/host is a version of /etc/hostname that is 
> supposed to contain the fully qualified domain name, not just 
> the machine's name.  ncftp uses it to create the anonymous 
> password, if $HOSTNAME is not defined in any env variable.

Yeah, and others look for something like /etc/domainname.  I wouldn't
recommend using either of it.

> Last, I notice most Unices have a 'domainname' command similar to 
> 'hostname' (though much more complete) but we don't.  Would that 
> be difficult to port?  Here's what the Debian one allows:

Probably from

http://www.tazenda.demon.co.uk/phil/net-tools/net-tools-1.46.tar.gz

The package contains stuff that we have in MiNTNet, like ifconfig, route,
etc.

Problems when porting: MiNT does not allow to set the host or domainname.
Of course the MiNTLib could emulate this by modifying the contents of
/etc/hostname (or /etc/domainname) but I feel a little uneasy with this
hack.  I still opt for a system call sethostname and setdomainname that
would be invoked during the startup sequence.  Ceterum censeo: The entire
socket stuff should go into the kernel...

Ciao

Guido
-- 
http://stud.uni-sb.de/~gufl0000
mailto:gufl0000@stud.uni-sb.de