Received: from sss.sss.pgh.pa.us (sss.pgh.pa.us [206.210.65.6]) by hub.org (8.9.2/8.9.1) with ESMTP id JAA73165 for ; Thu, 11 Mar 1999 09:51:55 -0500 (EST) (envelope-from tgl@sss.pgh.pa.us) Received: from sss.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.sss.pgh.pa.us (8.9.1/8.9.1) with ESMTP id JAA20719; Thu, 11 Mar 1999 09:50:34 -0500 (EST) To: Brian Eldridge cc: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] libpq problem In-reply-to: Your message of Wed, 10 Mar 1999 22:28:14 -0600 <36E7465D.140665F3@runesoft.com> Date: Thu, 11 Mar 1999 09:50:34 -0500 Message-ID: <20717.921163834@sss.pgh.pa.us> From: Tom Lane Brian Eldridge writes: > [on a Win 95 box] Whenever I try to connect to my Linux box, I get an > "unknown host" error from libpq. If I use the psql.exe that came with > the libs, it works fine. It kinda sounds like something is wrong with DNS lookup --- not on your box as a whole, but just in your program. Perhaps you are linking against a broken resolver library, or some such? Anyway, try putting some debug printouts around the call to gethostbyname() in fe-connect.c; I assume that must be the subroutine that's failing. Find out what it's being passed and what it's returning. regards, tom lane