Re: host name support in pg_hba.conf
Greg Stark <gsstark@mit.edu>
From: Greg Stark <gsstark@mit.edu>
To: Magnus Hagander <magnus@hagander.net>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Andrew Dunstan <andrew@dunslane.net>, Peter Eisentraut <peter_e@gmx.net>, KaiGai Kohei <kaigai@ak.jp.nec.com>, pgsql-hackers@postgresql.org, Steve Atkins <steve@blighty.com>, Robert Haas <robertmhaas@gmail.com>
Date: 2010-10-06T20:09:55Z
Lists: pgsql-hackers
On Wed, Oct 6, 2010 at 6:21 AM, Magnus Hagander <magnus@hagander.net> wrote: > It's not common, but i've certainly come across a number of virtual > machines where localhost resolves (through /etc/hosts) to the machines > "real" IP rather than 127.0.01, because 127.0.0.1 simply doesn't > exist. It's perfectly fine for localhost to resolve to the machine's external ip address. It would be weird for it to resolve to some other host's ip address like the vm's host machine. But having 127.0.0.1 not exist would be positively broken. All kinds of things wouldn't work. Are you sure about that part? -- greg