-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael wrote:
| Hi Michael,
|
| You are right. It has something to do with the /etc/hosts file.
| Apparently, I had only this:
| 192.168.1.1		linux_box
| The alias wasn't declared.
| And when I changed it to:
| 192.168.1.1		linux_box	localhost.localdomain localhost
| The delay disappears altogether.
| I had to compare this against another linux box that was freshly
| installed.
| I guess it was trying to resolve "localhost".

In theory, localhost should always point to 127.0.0.1 - largely for security
reasons.

That means /etc/hosts should read:

127.0.0.1	localhost	localhost.localdomain
192.168.1.1	linux_box

One reason may be that some programs might reslove localhost to determine
which interface to bind to. In some instances, you want the application to
listen on (lo) only to make the service only accessable locally (i.e. xfont
server or perhaps a locally running version of sendmail or mysql). If you
specify in the conf that you want it to listen on "localhost:6000" for
example, you may be opening that port up to your entire network if localhost
resolves to something other than 127.0.0.1.

Another bad case example would be for client services (such as X) which are
supposed to work w/ those services bound to localhost in their config - if
they attempted to resolve localhost and got a real IP vs. 127.0.0.1, they
may not be able to properly access a service if said service was still
listening only on 127.0.0.1.

While either/neither/both of these examples may be valid, the possibility of
them occuring does exist.

To touch on the original problem - if your loopback interface (lo) isn't
starting, that's a whole different problem. i.e. if localhost resoved to
127.0.0.1, but the machine wasn't able to "communicate" via that IP.. etc. etc.

Hope that makes some sense.
- -Rick

- --
Rick Johnson, RHCE - [EMAIL PROTECTED]
Linux/WAN Administrator - Medata, Inc.
PGP Public Key: https://mail.medata.com/pgp/rjohnson.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Signed and/or encpryted for everyone's protection.

iEYEARECAAYFAj4CcIMACgkQIgQdhlSHZgM07gCfdoUK00nQacFSGMtWI3NO635M
p6sAn0JdtStR6nzUGLq2iD+kuw8STww7
=663h
-----END PGP SIGNATURE-----



--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to