pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alan Hodgson <ahodgson@lists.simkin.ca>
To: pgsql-general@lists.postgresql.org
Subject: Re: Psql wants to use IP6 when connecting to self using tcp...
Date: Wed, 23 Jun 2021 17:45:14 -0700
Message-ID: <2e8880d153afae10aea61d59ec8c9fe879ffa84f.camel@lists.simkin.ca> (raw)
In-Reply-To: <A1F5CBD0-64F7-469B-B971-AC316C52705F@gmail.com>
References: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com>
	<20210623175127.GB27765@hjp.at>
	<A1F5CBD0-64F7-469B-B971-AC316C52705F@gmail.com>

On Wed, 2021-06-23 at 17:25 -0500, Jerry LeVan wrote:
> 
> So the question is: Why does using the short name evidently cause postresql
> to use the ipv6 address
> and using the full name use the ipv4 address?

I'm thinking this might be coming from Avahi, which might be enabled on Fedora
by default. That uses local network broadcasts for name discovery, and is the
only thing I can think of that would result in an fe80:: address showing up in
a name search if you didn't deliberately add it to DNS.

Check /etc/nsswitch.conf and remove anything like mdns4_minimal.

https://fedoramagazine.org/find-systems-easily-lan-mdns/

Attachments:

  signature.asc (application/pgp-signature, 869B) download

view thread (9+ messages)  latest in thread

Message-ID: <2e8880d153afae10aea61d59ec8c9fe879ffa84f.camel@lists.simkin.ca>
Permalink:  ../2e8880d153afae10aea61d59ec8c9fe879ffa84f.camel@lists.simkin.ca/
Also on:    postgresql.org/message-id/2e8880d153afae10aea61d59ec8c9fe879ffa84f.camel@lists.simkin.ca

 · 

reply

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: ahodgson@lists.simkin.ca
  Subject: Re: Psql wants to use IP6 when connecting to self using tcp...
  In-Reply-To: <2e8880d153afae10aea61d59ec8c9fe879ffa84f.camel@lists.simkin.ca>
  References: <E2F44383-6C51-4B0E-B26B-759ED4252BEF@gmail.com> <20210623175127.GB27765@hjp.at> <A1F5CBD0-64F7-469B-B971-AC316C52705F@gmail.com> <2e8880d153afae10aea61d59ec8c9fe879ffa84f.camel@lists.simkin.ca>

* 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