[Linuxtrent] Re: risoluzione dei nomi

  • From: arlan <arlan@xxxxxxxxxxxxx>
  • To: linuxtrent@xxxxxxxxxxxxx
  • Date: Wed, 11 Feb 2004 11:21:17 +0100

On Wed, 2004-02-11 at 11:05, Laura Gatti wrote:
[cut]
> nome del server "pippo"
> >ping pippo
> mi risponde che non trova pippo
> >ping 192.168.2.2
> risponde che e` una meraviglia
> 
> Mi hanno detto che basterebbe fare un file in /etc di cui non si
> ricordano il nome esatto, in cui fare l'associazione nome-ip (e non si
> ricordano nemmeno questa sintassi.
> 
> Qualcuno puo` dirmi come si chiama il file e la sintassi per
> l'associazione? Oppure indicarmi un documento dove sta scritto?

il file e' /etc/hosts
 hosts         This file describes a number of hostname-to-address
#               mappings for the TCP/IP subsystem.  It is mostly
#               used at boot time, when no name servers are running.
#               On small systems, this file can be used instead of a
#               "named" name server.  Just add the names, addresses
#               and any aliases to this file...

il file si riempie cosi':
IP                      hostname
Es: 127.0.0.1               localhost


ciao

-- 
-----------------------------------------------------------------------
arlan(at)autistici(dot)org

iNDivia: www.indivia.net  - Server vegetale a foglia lunga verde chiaro

arlan.indivia.net - www.indivia.net/arlan/
-----------------------------------------------------------------------

-- 
Per iscriversi  (o disiscriversi), basta spedire un  messaggio con OGGETTO
"subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx


Other related posts: