Re: DNS vs /etc/hosts

Поиск
Список
Период
Сортировка
От Lowell.Hought@faa.gov
Тема Re: DNS vs /etc/hosts
Дата
Msg-id OF3A7C6EB3.5D1EE4AC-ON86257053.0073A864-86257053.0076DE05@faa.gov
обсуждение исходный текст
Ответ на Re: DNS vs /etc/hosts  ("WELTY, RICHARD" <richard.welty@bankofamerica.com>)
Ответы Re: DNS vs /etc/hosts  (Gregory Youngblood <pgcluster@netio.org>)
Список pgsql-general

Both dig and nslookup are fast on all machines.  'psql' is fast on all machines, as long as I am using the version compiled with version 7.2.  It is only 'psql' compiled with version 8.0 that is slow.  I don't think DNS is the problem, but rather the way psql in version 8.0 attempts to get the DNS info.  My Linux kernal version is 2.4.18.



"WELTY, RICHARD" <richard.welty@bankofamerica.com>

Sent by: pgsql-general-owner@postgresql.org

08/04/2005 03:46 PM

To
Richard_D_Levine@raytheon.com, pgsql-general@postgresql.org
cc
Subject
Re: [GENERAL] DNS vs /etc/hosts





nslookup isn't the easiest tool for use in diagnosing dns problems
as it goes through the whole messy nsswitch process, and doesn't
readily isolate much of anything.

the dig command focuses on dns only, skips nsswitch altogether,
and lets you rule dns problems in or out in one swell foop. if
dig is fast and nslookup is slow, then you need to examine
/etc/nsswitch for foulups.

richard

-----Original Message-----
From: pgsql-general-owner@postgresql.org
[mailto:pgsql-general-owner@postgresql.org]On Behalf Of
Richard_D_Levine@raytheon.com
Sent: Thursday, August 04, 2005 4:29 PM
To: pgsql-general@postgresql.org
Subject: Re: [GENERAL] DNS vs /etc/hosts


Sorry to re-reply, but I had a much simpler idea.  From the client machine
that is slow to connect, type the command "nslookup hostname1".  If it
takes 15 seconds.  If it does, DNS is the problem.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

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

Предыдущее
От: Lowell.Hought@faa.gov
Дата:
Сообщение: Re: DNS vs /etc/hosts
Следующее
От: Frank Miles
Дата:
Сообщение: What causes lock?