From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jerry Levan <jerry.levan@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Psql wants to use IP6 when connecting to self using tcp...
Date: Mon, 21 Jun 2021 21:23:47 -0400
Message-ID: <1675051.1624325027@sss.pgh.pa.us> (raw)
In-Reply-To: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com>
References: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com>
Jerry Levan <jerry.levan@gmail.com> writes:
> The below fails... the 'fe80....' is the ip6 address of big box.
> [jerry@bigbox ~]$ psql -h bigbox
> psql: error: FATAL: no pg_hba.conf entry for host "fe80::fe3f:dbff:fed1:f62e%enp7s0", user "lxxx", database "lxxx", SSL off
This is mostly a matter of how your local DNS is configured,
not PG per se. What does "nslookup bigbox" say?
> What did I have to do get the 'fatal' above case to work?
Adjust your DNS setup to return the IPv4 address first.
Or, perhaps, change PG's listen_addresses so that it's
not listening on an IPv6 address at all. There's not
going to be much point in that if you don't want
to put IPv6 entries into pg_hba.conf.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, jerry.levan@gmail.com
Subject: Re: Psql wants to use IP6 when connecting to self using tcp...
In-Reply-To: <1675051.1624325027@sss.pgh.pa.us>
References: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com> <1675051.1624325027@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox