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

Re: hostname



Ciao Michele,

On Sat, Aug 14, 2004 at 05:00:55PM +0200, Michele B. wrote:
> Salve a tutti,
> ho appena installato debian woody. Ricordo che in fase di installazione,
> mi è stato proposto di assegnare al computer un hostname e un dominio,
> oltre che un IP. Ebbene, vorrei cambiare hostname e dominio usando lo
> stesso tool (oppure in qualche altro modo).
> Qualcuno sa come aiutarmi ?

E' possibile! ...... :-)

Allora, osservando la man page di hostname (man hostname) si ottengono delle
informazioni assai interessanti:

--
HOSTNAME(1)         Linux Programmer's Manual         HOSTNAME(1)

NAME
       hostname - show or set the system's host name
[...]

SYNOPSIS
       hostname [-v] [-a] [--alias] [-d] [--domain] [-f] [--fqdn]
       [-i]  [--ip-address]  [--long]  [-s] [--short] [-y] [--yp]
       [--nis]

[...]
       hostname [-v] [-F filename] [--file filename] [hostname]
[...]
       hostname [-v] [-h] [--help] [-V] [--version]
[...]

DESCRIPTION
       Hostname is used to either set or display the current host
       or  domain  name of the system.  This name is used by many
       of the networking programs to identify  the  machine.  The
       domain name is also used by NIS/YP.
[...]


Cioe' hostname e' usato sia per visualizzare l'hostname corrente presente
nel file /etc/hostname, che per impostarlo .... che cosa vuoi di piu'?
..... :-)


Good Bye!
Hugh Hartmann
 



Reply to: