Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwDUo-00052P-V0 for pgsql-general@arkaria.postgresql.org; Thu, 24 Jun 2021 00:45:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lwDUn-0006E7-UO for pgsql-general@arkaria.postgresql.org; Thu, 24 Jun 2021 00:45:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwDUn-0006Dz-E7 for pgsql-general@lists.postgresql.org; Thu, 24 Jun 2021 00:45:29 +0000 Received: from outbound3d.ore.mailhop.org ([54.186.57.195]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwDUg-00040H-Rr for pgsql-general@lists.postgresql.org; Thu, 24 Jun 2021 00:45:28 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1624495522; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=ndEh0wyb9oCv2I6IK8MEwbhtdr+Q3PM5/xUD9x/ChJJ1BqUxTokFN3T0forOguzfdVUzfY3svdk/z YdKCEf63AmadIsNrIOxSLWEaFhO7OAAPH/dzE/+mPDPV+UALW8hW3EprtHCR566cORU7c4/CWAK9tp ZmzVxioouX1cNgPlNSePtPlAH0OAORtAve7GKlicCHpeWvqywqk/04eSpVLSrXqOV66EkRkOm0smct hiErvqLPNPBt7QAs1RTUSrOkLXHijUjL5To78AdkO0K0qRDhs/gqbMaKJQoyRTX0iaujWk4WC1PrNn kGEf0Wkuv4yft5XL4LzaitJiu7buApg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=mime-version:content-type:references:in-reply-to:date:to:from:subject: message-id:dkim-signature:dkim-signature:dkim-signature:from; bh=JwQoBth6PdYgJoGvRUgqA5TyybF1lo4/wd4NHqkbGk8=; b=vLRTcao2dOknFvVdDOC6tvpKQph0QhIbBhYE9be2tSrX4AFWIqrGrU+UdFk4LXRz9VoZFZm1gKxhi pWbKlxAr9QZV5srweH4pC06Iw7d0K1RlPl3oHjf1iFxcsOhbcGTdfGepuoYfhTqcn4t9NsiHJgKLIj +qcPcvfUKzAWYw8qJIraAtePliJLhtUtvqUfdqzAIY2woue6uSL3VU0Cd5F8PUTsqjZyUxilDCkGfT GXZX9+U41RMB6laTTWH+lFSUC7NpjL5xaKixaNmC6KIo3vi1EVmkGRL49nK9y74f7BRXkT1RVuiqQd /jTKTdzRsP5Pg51xY0dGY86pkD4EGaw== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=pass smtp.mailfrom=lists.simkin.ca smtp.remote-ip=74.50.227.220; dkim=pass header.d=lists.simkin.ca header.s=athena header.a=rsa-sha256 header.b=gvJUE4uh; dmarc=pass header.from=lists.simkin.ca; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.simkin.ca; s=duo-1610662143981-d3c4c825; h=mime-version:content-type:references:in-reply-to:date:to:from:subject: message-id:from; bh=JwQoBth6PdYgJoGvRUgqA5TyybF1lo4/wd4NHqkbGk8=; b=fSD3BSRLCN/hF9saC7lAH4ONMPjUA4zJooojPDUJTELzyuClGcngcKN2HfKbYKSYCEhM9n0LRhW5V o8bzojguGPUeW9LFJA6SUO6n6aQhbX/Atw96mXnk+c5ciHMgUVqVKOxhGHCz78tCmCjp6+XzYTngXl O4egtc95hb9HBRGU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=mime-version:content-type:references:in-reply-to:date:to:from:subject: message-id:from; bh=JwQoBth6PdYgJoGvRUgqA5TyybF1lo4/wd4NHqkbGk8=; b=FApDXaqjRdUNMcSP/84pHsSXrdkRrITwJDHbs93gHVRtjlxorXFkS1srF7Bmr8HfBo1voFRSTny7+ BU7gFgOzd4uxkz5wPRq6ks39foY7dNRU5emOBZTjFTjx/pl5gQhQ8vewIUrYzA0roxw4sSyLus20e8 EUeaoKuTsDEPVWeQCSuj3sk4MNdmKJW/PggTRco3TSeKOui9d1NEre9c+aXfv6Lp9UuoQh2pkAFUye gEoYpPmGYa/SqDfNXD+R0rSCgIbk5Zb5nxdJoKj3ZEQlG8lAXvElhW0kd9uJScU4yyOMsEd9iSvjOS uiVlMXl1/KIwnd4bL89q7VZdGpxGuHA== X-Originating-IP: 74.50.227.220 X-MHO-RoutePath: c2lta2lu X-MHO-User: 738c2993-d485-11eb-8dfb-bf9d68d023b6 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP Received: from athena.simkin.ca (athena.simkin.ca [74.50.227.220]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 738c2993-d485-11eb-8dfb-bf9d68d023b6; Thu, 24 Jun 2021 00:45:20 +0000 (UTC) Received: from skynet.simkin.ca (node-1w7jr9sr73xr4ze19xwgjcteu.ipv6.telus.net [IPv6:2001:569:bce0:6400:fa75:a4ff:fe2f:92e6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by athena.simkin.ca (Postfix) with ESMTPSA id C0610DC696E8 for ; Wed, 23 Jun 2021 17:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.simkin.ca; s=athena; t=1624495519; bh=JwQoBth6PdYgJoGvRUgqA5TyybF1lo4/wd4NHqkbGk8=; h=Subject:From:To:Date:From:To:Subject:Date:Reply-To; b=gvJUE4uhLWQ+1qqJPZ+8pxnbCvwQU1aky34PJpaMtBaUUBHLvFX3vpiWMl2wzziq7 yRWjTaIcWl7pvNa7m+Of9HAN+Uq9KMBNo1ZVwgRpcOg1hvzEJNoI107Gzab/zQxqdI NElu1M8aI8+ac26UBseiLErsInxFpLJlHYlwhhLFz4InDwesWYs3m8MxzzefyaLcmr D2LlT4iKjGrJDAP1LeLAo7B7MErZr9pppGlem4iSAfzssL9xvut5ZSFKCv9LOqs38f sw+qzfmthMT2G7kzA5BnbLm+PXIf44uJJ87hG0mGJaybVNeOYFCKax2GdfRW+LapZQ 3VWKev1Mkxraw== Received: from skynet.simkin.ca (skynet.simkin.ca [IPv6:::1]) by skynet.simkin.ca (Postfix) with ESMTP id DE852105B1B02 for ; Wed, 23 Jun 2021 17:45:14 -0700 (PDT) Message-ID: <2e8880d153afae10aea61d59ec8c9fe879ffa84f.camel@lists.simkin.ca> Subject: Re: Psql wants to use IP6 when connecting to self using tcp... From: Alan Hodgson To: pgsql-general@lists.postgresql.org Date: Wed, 23 Jun 2021 17:45:14 -0700 In-Reply-To: References: <20210623175127.GB27765@hjp.at> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-XNm1C9ab0cDjSL9TYgiA" X-PGP-Key: fp="EF82 6F8D A3BA A096 FFA3 05F2 A7A0 40A5 34E5 AA0B"; id="0x34E5AA0B"; get= User-Agent: Evolution 3.40.1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --=-XNm1C9ab0cDjSL9TYgiA Content-Type: multipart/alternative; boundary="=-s9lt4w5s6HBQKxYhpEzm" --=-s9lt4w5s6HBQKxYhpEzm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2021-06-23 at 17:25 -0500, Jerry LeVan wrote: >=20 > So the question is: Why does using the short name evidently cause postres= ql > 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 Fed= ora by default. That uses local network broadcasts for name discovery, and is t= he 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/ --=-s9lt4w5s6HBQKxYhpEzm Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
On Wed, 2021-06-23 at 17:25 -0500, Jerry LeVa= n wrote:

So the questio= n is: Why does using the short name evidently cause postresql to use the ip= v6 address
and using the full name use the ipv4 address?
<= /div>

I'm thinking this might be coming fro= m Avahi, which might be enabled on Fedora by default. That uses local netwo= rk 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.


=
--=-s9lt4w5s6HBQKxYhpEzm-- --=-XNm1C9ab0cDjSL9TYgiA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQJNBAABCAA3FiEEGSsCxYd/IdV46DQpUrYKptYbZCIFAmDT1ZoZHGFob2Rnc29u QGxpc3RzLnNpbWtpbi5jYQAKCRBStgqm1htkIi5JD/9SSA0W2bqyqVLNvkqMSpGo lrgIZXNxKfPcLabkOaDojewCDV24W1liVoMPWhjbHQfIOt6njuikbCenFllu1Q5+ bLec3G7VhALemQueA2SxCAdnMSIi42AV6XIuTNoeOEaUQZCQldIJ5OOhqw/eMKsp l1dddH0/RlbUOTABYBv4XXEIuQpj2pVwtXo7swvqzvoG3kRWU8lwThv0fIdbAVah hhsRoLtqNBw6GU42dd1Ug6NCmEVTWcaTxPrmlEUOnsMcF0Dfkefn8LTWZ6NZfpUi FvrhIR577Zqq/Q1R/V/aBtWh3fvMzIcDVuQHhjt93hUgnUdY7/OrsaWoK+l05P82 XlvtOCOjFLzT4YW1TtkBcX55fPPADClLvEH7KLe+puhEC5ZPHdgHlswtUiJTPBoE ulNLusuSzsJi2nydnus4EJFrONY/MDEdrX4M5x6f5tXcG5PIbh5+XGjNwbKsnIis iyQNoMR2enNlhigzOtF36VRI7hNbUkyCmpRCpE3TTlfFLsODsc5TyeezlJj2daQj 3JmBVfojYlbAftDF9/2EykUrDQHaaxl1o4El+ozZ++/qE+zUiQ+XXGivCllQAvIm l+4ZSw0TzgYWWIvosJ55j/RVn8VjJIAV8SHM3t6/EGdPiJQ1JMyviqnAEIcCm+d5 8Ul6Pqx/+0nW0WdEGjWYbQ== =4YkV -----END PGP SIGNATURE----- --=-XNm1C9ab0cDjSL9TYgiA--