Thread: Warings in Log: could not resolve "localhost": host nor service provided, or not known

Hello All,

                  I built PostgreSQL 7.4.2 on HPUX IPF platform. It works fine. But when I start the postmaster, I got
the following LOG message:

 LOG:  could not resolve "localhost": host nor service provided, or not known

$ postmaster -D /var/opt/iexpress/postgresql &
[1]     8995
$ LOG:  could not resolve "localhost": host nor service provided, or not known
LOG:  database system was shut down at 2004-03-30 16:07:50 IST
LOG:  checkpoint record is at 0/2132D0
LOG:  redo record is at 0/2132D0; undo record is at 0/0; shutdown TRUE
LOG:  next transaction ID: 120; next OID: 16778
LOG:  database system is ready

Is there any configuration to solve this problem?

Regs,
Durai.

Lycos Email has 10 MB of FREE storage space. http://mail.lycos.co.uk


"Durai " <visolve_postgres@lycos.co.uk> writes:
>                   I built PostgreSQL 7.4.2 on HPUX IPF platform. It works fine. But when I start the postmaster, I
got 
> the following LOG message:

>  LOG:  could not resolve "localhost": host nor service provided, or not known

The machine's name service is broken.  You probably need to fix
/etc/nsswitch.conf, /etc/hosts, and/or /etc/resolv.conf.
"man switch" has some info about the first of these.

            regards, tom lane