Re: BUG #1088: Name resolution connecting to a database - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1088: Name resolution connecting to a database
Date
Msg-id 27697.1078241333@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1088: Name resolution connecting to a database  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
List pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> trying to connect to the server with domain name
> takes long time, here an example:
> ...
> but every thing works fine if I use the IP address:

There's something wrong with your DNS setup.  You'll probably find that
the same delay occurs with any program that tries to resolve a host name
(if in doubt, try "nslookup server").

I'd bet that your /etc/resolv.conf is pointing at a dead nameserver.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: bug on index of tsearch2?
Next
From: Richard Huxton
Date:
Subject: Re: BUG #1088: Name resolution connecting to a database