The following bug has been logged online:
Bug reference: 1045
Logged by: Keith Halewood
Email address: keith_halewood@systems-intelligence.com
PostgreSQL version: 7.4
Operating system: HP-UX 11i
Description: hostname lookup in psql or libpg.sl does work
Details:
psql (and libpg.sl via the DBI and DBD::Pg interface) report:
psql: could not translate host name "ysolde" to address: host nor service
provided, or not known
despite ysolde, in this case, being available via the DNS and both nslookup
and dig (and all the other clients) correctly resolving names.
If 'ysolde' and its address are placed in the system's /etc/hosts file, psql
(and libpq.sl) is able to resolve an address and connect.