Re: DNS vs /etc/hosts - Mailing list pgsql-general

From Thomas Pundt
Subject Re: DNS vs /etc/hosts
Date
Msg-id 200508051419.27653.mlists@rp-online.de
Whole thread Raw
In response to DNS vs /etc/hosts  (Lowell.Hought@faa.gov)
Responses Re: DNS vs /etc/hosts  (Lowell.Hought@faa.gov)
List pgsql-general
Hi,

On Thursday 04 August 2005 17:13, Lowell.Hought@faa.gov wrote:
| I am changing from 7.2 to 8.0 and have both installed now on various Linux
| machines.  When I use the psql command line interface with a -h hostname,
| the connection time from 7.2 is instant while the connection time from 8.0
| is 15 seconds.  My assumption is that 7.2 checks the /etc/hosts file first
| and if unable to find the specified host it reverts to a DNS lookup, and
| the 8.0 is just the opposite.  Is this a correct assumption, and if so,
| can I modify 8.0 to behave as 7.2 does?

I've once seen nameservice and connection delays caused by improperly
configured IPV6 support on some Linux machines. Removing the responsible
modules from the kernel fixed it. Just another guess though :-)

Ciao,
Thomas

--
Dr. Thomas Pundt <thomas.pundt@rp-online.de> ---- http://rp-online.de/ ----


pgsql-general by date:

Previous
From: Stephane Bortzmeyer
Date:
Subject: Re: wanting to use postgres with python - WHAT am I doing wrong?????? AGGGHHHH
Next
From: Roman Neuhauser
Date:
Subject: Re: Cursor Issue??