Re: /etc/hosts: Two lines with the same IP address?
On Wed, 9 Jun 2004 02:09:38 +0200, Bernd Eckenfels
<lists@lina.inka.de> wrote:
>On Tue, Jun 08, 2004 at 02:48:06PM +0100, Andrew Suffield wrote:
>> The problem then is that 'getent hosts 127.0.0.1' returns 'pingo'
>> instead of 'localhost'.
>
>thats why it is a bad thing to alias the hostname to 127.0.0.1 and
>should be avoided: however on systems with no (static) ip, one can either
>use 127.0.0.1 (and either break hostname --fqdn or break 127.0.0.1 reverse
>resolving to localhost) or use a dummy interface with a dummy ip.
This is what somebody suggested on IRC. I have configured localhost to
be 127.0.0.1, and hostname and fqdn to 127.0.1.1. Which hasn't shown
any bad effects yet.
Greetings
Marc
--
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber | " Questions are the | Mailadresse im Header
Karlsruhe, Germany | Beginning of Wisdom " | Fon: *49 721 966 32 15
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fax: *49 721 966 31 29
Reply to: