Re: psql connection via localhost or 127.0.0.1

From: Edoardo Panfili <edoardo(at)aspix(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: psql connection via localhost or 127.0.0.1
Date: 2014-11-06 15:36:45
Message-ID: 545B958D.7080409@aspix.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2014-11-06 15:47:09 Re: psql connection via localhost or 127.0.0.1
Previous Message Ramesh T 2014-11-06 15:26:06 Re: phppgadmin