Re: DNS vs /etc/hosts

Поиск
Список
Период
Сортировка
От Tino Wildenhain
Тема Re: DNS vs /etc/hosts
Дата
Msg-id 1123170982.15416.75.camel@sabrina.peacock.de
обсуждение исходный текст
Ответ на DNS vs /etc/hosts  (Lowell.Hought@faa.gov)
Ответы Re: DNS vs /etc/hosts  (Lowell.Hought@faa.gov)
Список pgsql-general
Am Donnerstag, den 04.08.2005, 10:13 -0500 schrieb
Lowell.Hought@faa.gov:
>
> 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?

No, applications dont do lookups theirself.
The os (or rather the resolver lib) decides
how it works and therefore both 7.2 and 8.0
will behave the same.

I think you have different user policies in their
pg_hba.conf and 8.0 might (per default) want to
check ident. And if you firewall it or so it might
take a while to timeout.

--
Tino Wildenhain <tino@wildenhain.de>


В списке pgsql-general по дате отправления:

Предыдущее
От: Lowell.Hought@faa.gov
Дата:
Сообщение: DNS vs /etc/hosts
Следующее
От: Benjamin Scherrey
Дата:
Сообщение: Default size limit for 'character varying' in Postgres 8?