Re: psql connection via localhost or 127.0.0.1 - Mailing list pgsql-general

From Edoardo Panfili
Subject Re: psql connection via localhost or 127.0.0.1
Date
Msg-id 545B958D.7080409@aspix.it
Whole thread Raw
In response to Re: psql connection via localhost or 127.0.0.1  (John R Pierce <pierce@hogranch.com>)
Responses Re: psql connection via localhost or 127.0.0.1  (John R Pierce <pierce@hogranch.com>)
List pgsql-general
Il 06/11/14 16:00, John R Pierce ha scritto:
> On 11/6/2014 6:34 AM, Edoardo Panfili wrote:
>>
>> Why localhost is not an alias for 127.0.0.1 ?
>
> grep localhost /etc/hosts
127.0.0.1       localhost
127.0.1.1       host.host     host

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
>
> I've seen some weird stuff on some systems.
>
127.0.1.1 sounds a little bit strange form me but the file seems ok.

and

$ host localhost
localhost has address 127.0.0.1
localhost has IPv6 address ::1

Edoardo




pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: psql connection via localhost or 127.0.0.1
Next
From: John R Pierce
Date:
Subject: Re: psql connection via localhost or 127.0.0.1