Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost" - Mailing list pgsql-bugs

From Paul Jungwirth
Subject Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"
Date
Msg-id CA+6hpaktvxnj+sM_2iG0dGP_7C13y5y25GUwx9dLebrj8-rK4w@mail.gmail.com
Whole thread Raw
In response to Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"  (John R Pierce <pierce@hogranch.com>)
List 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.

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"
Next
From: John R Pierce
Date:
Subject: Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost"