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

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



On Wed, Jun 09, 2004 at 01:03:53PM +0200, Thomas Hood wrote:
> Marc Haber wrote:
> > 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.
> 
> This is the best idea so far, provided it works.  Anyone see any problem
> with it

Where does 127.0.1.1 fit in to the whole "hostname of system must
resolve into a usable IP" thing? should we have an alias for the lo
device that sets up 127.0.1.1? It sounds like a gross hack.

> If the machine has static IP address 10.1.2.3:
> 
>     127.0.0.1	localhost.localdomain	localhost
>     10.1.2.3    pingo
> 
> If the machine has static IP address 10.1.2.3 and domain name
> 'pingodom':
> 
>     127.0.0.1	localhost.localdomain	localhost
>     10.1.2.3    pingo.pingodom	pingo

This sounds good. I won't commit anything until we all agree though :)

-- 
Joshua Kwan

Attachment: signature.asc
Description: Digital signature


Reply to: