localhost resolving
localhost resolving
От:
Tonko Racic <tonko.racic@id.ethz.ch>
Дата:
Hi there, I have a problem with local host resolving. LOG: could not resolve "localhost": host nor service provided, or not known LOG: disabling statistics collector for lack of working socket LOG: database system was shut down at 2006-12-08 14:15:00 MET LOG: checkpoint record is at 1/43D72F28 LOG: redo record is at 1/43D72F28; undo record is at 0/0; shutdown TRUE LOG: next transaction ID: 11477951; next OID: 16775 LOG: next MultiXactId: 14; next MultiXactOffset: 34 LOG: database system is ready LOG: transaction ID wrap limit is 2147484146, limited by database "postgres" ========= I am running HP-UX 11.23 and have installed postgresql 8.1.3 Localhost is in /etc/hosts, I also have nsswitch.conf and resolv.conf configured. gridy 23: nslookup localhost Name Server: dns1.ethz.ch Address: 129.132.98.12 Trying DNS Trying NIS looking up FILES Name: localhost Address: 127.0.0.1 Aliases: loopback Can anyone help me on this. Thanks, Tonko
Re: localhost resolving
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Tonko Racic writes: > I have a problem with local host resolving. > LOG: could not resolve "localhost": host nor service provided, or > not known > I am running HP-UX 11.23 and have installed postgresql 8.1.3 Googling suggests that that's HPUX's spelling of EAI_NONAME, implying that resolution of the given name failed. > Localhost is in /etc/hosts, I also have nsswitch.conf and resolv.conf > configured. Configured how? The nslookup result shows that your DNS server refuses to resolve "localhost", so I'm thinking you made a mistake somewhere such that getaddrinfo() isn't looking in /etc/hosts. regards, tom lane