Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"

From: Paul Jungwirth <pj(at)illuminatedcomputing(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"
Date: 2012-10-31 20:43:42
Message-ID: CA+6hpaktvxnj+sM_2iG0dGP_7C13y5y25GUwx9dLebrj8-rK4w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> This behaves as expected for me. I'm wondering whether your DNS
> server is resolving "localhost" as meaning both 127.0.0.1 and your
> public IP. "dig localhost." might be illuminating.

Wow, that is some psychic debugging. Sure enough, my /etc/hosts is
setting localhost to both 127.0.0.1 and my other IP. Using
`listen_addresses = '127.0.0.1'` fixes the problem.

Thank you!
Paul

--
_________________________________
Pulchritudo splendor veritatis.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message John R Pierce 2012-10-31 21:01:55 Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"
Previous Message Tom Lane 2012-10-31 20:06:52 Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"