DNS vs /etc/hosts

Поиск
Список
Период
Сортировка
От Lowell.Hought@faa.gov
Тема DNS vs /etc/hosts
Дата
Msg-id OFAD2896F4.52DF6036-ON86257053.0052FE7E-86257053.00538D3B@faa.gov
обсуждение исходный текст
Ответы Re: DNS vs /etc/hosts  (Tino Wildenhain <tino@wildenhain.de>)
Re: DNS vs /etc/hosts  (Michael Fuhr <mike@fuhr.org>)
Re: DNS vs /etc/hosts  (Gregory Youngblood <pgcluster@netio.org>)
Re: DNS vs /etc/hosts  (Thomas Pundt <mlists@rp-online.de>)
Список pgsql-general

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?

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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: weirdness with the a sql update
Следующее
От: Tino Wildenhain
Дата:
Сообщение: Re: DNS vs /etc/hosts