What goes in /etc/hosts?

Nat Gross natgross.rentalsystems at verizon.net
Thu Mar 10 21:47:06 UTC 2005


Brian Fahrlander wrote:

>On Thu, 2005-03-10 at 12:02 -0500, Nat Gross wrote:
>
>  
>
>>When you say append .local, is that referring to all machines on the 
>>local net, or only to this one local host. In other words, for the other 
>>hosts on the lan, do I also need to append .local?
>>    
>>
>
>    ...for the local net, yeah.  If you put both names in /etc/hosts
>it'll work the way you think, and the way you want:
>
>    192.168.1.5   router.local router
>    192.168.1.10  mybox.local  mybox
>
>               (and so on)
>
>    This is something understood by the collection of machines involved;
>it can be anything. ".local" could easily be ".shoehorn" just as long as
>every machine knows about it. ".local" just keeps it straight, for me.
>
>  
>
Thank you all.
-nat




More information about the users mailing list