Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTeYx-0007Nz-CH for pgsql-bugs@postgresql.org; Wed, 31 Oct 2012 20:06:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TTeYw-0003hu-49 for pgsql-bugs@postgresql.org; Wed, 31 Oct 2012 20:06:54 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q9VK6qef015993; Wed, 31 Oct 2012 16:06:52 -0400 (EDT) From: Tom Lane To: pj@illuminatedcomputing.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7632: Postgres binds to all IPs even when listen_addresses="localhost" In-reply-to: References: Comments: In-reply-to pj@illuminatedcomputing.com message dated "Wed, 31 Oct 2012 19:38:30 -0000" Date: Wed, 31 Oct 2012 16:06:52 -0400 Message-ID: <15992.1351714012@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201210/256 X-Sequence-Number: 34556 pj@illuminatedcomputing.com writes: > After a default install of Postgres, I see that it's binding not just to > localhost, but also to my public IP. 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. regards, tom lane