Re: BUG #1088: Name resolution connecting to a database

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: al(dot)an(at)sitvallee(dot)it
Cc: "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #1088: Name resolution connecting to a database
Date: 2004-03-02 15:28:53
Message-ID: 27697.1078241333@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Richard Huxton 2004-03-02 15:39:40 Re: BUG #1088: Name resolution connecting to a database
Previous Message Tom Lane 2004-03-02 15:05:56 Re: bug on index of tsearch2?