On 5/18/05, Hans Fugal <[EMAIL PROTECTED]> wrote: > Here's one of those deep questions. What is the proper format for the > loopback line in /etc/hosts? I've seen all of the following: > > ... > > 127.0.0.1 localhost.localdomain localhost foo foo.example.com > > ... > > 127.0.0.1 localhost localhost.localdomain > 10.0.0.1 foo.example.com foo > > ... > > 127.0.0.1 localhost > 10.0.0.1 foo.example.com foo > > ... > > 127.0.0.1 localhost > 127.0.0.1 foo.example.com foo > > ... > > 127.0.0.1 localhost > > ...
Whatever you want ping to display when you ping localhost should be first in the list. /etc/hosts: 127.0.0.1 maximus.example.com localhost.localdomain localhost Now when I ping localhost, the reply line says "maximus.example.com" on it. This happens to be how I like it... Thus it's the best. -Bryan .===================================. | This has been a P.L.U.G. mailing. | | Don't Fear the Penguin. | | IRC: #utah at irc.freenode.net | `==================================='
