[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /etc/hosts: Two lines with the same IP address?



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.

Greetings
Bernd
-- 
  (OO)      -- Bernd_Eckenfels@Mörscher_Strasse_8.76185Karlsruhe.de --
 ( .. )      ecki@{inka.de,linux.de,debian.org}  http://www.eckes.org/
  o--o     1024D/E383CD7E  eckes@IRCNet  v:+497211603874  f:+497211603875
(O____O)  When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl!



Reply to: