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

Bug#247734: /etc/hosts: Two lines with the same IP address?



On Tue, Jun 08, 2004 at 05:19:29PM +0200, Thomas Hood wrote:
> Second, one wants "hostname --fqdn" to yield the hostname, not "localhost".

I think i can fix that in hostname, by looking at the first entry in the
aliases which is not "localhost" and which has dots. and if there is none
with dots then use the first which is not localhost, and only of none found,
allow localhost to be returned. That would remove the requirement of
multiple 127.0.0.1 lines.

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: