1835245 Members
2128 Online
110078 Solutions
New Discussion

gethostbyname fails

 
Amy Eryilmaz_1
New Member

gethostbyname fails

The following message appears in syslog.log files for both slaves and clients.
At the end of the first line the hostname is being truncated.

automountd[#] :gethostbyname failed for nfsmount: gethostbyname() failed

Any ideas on what is causing this?

Note: NIS Master is HP-UX 11.0
Slaves/Clients are at HP-UX 10.20 and have latest patches.

Thanks in advance for any advice you have.
4 REPLIES 4
Berlene Herren_1
Super Advisor

Re: gethostbyname fails

Amy, do you have PHCO_19691 loaded? If so, that's the culprit.

- [PHCO_19691/PACHRDME/English] introduces two problems on systems configured
to use DNS (Domain Name System) for hostname lookup. Both of the problems are
exhibited by the gethostent(3N)function calls, such as gethostbyname() and
gethostbyaddr().


Berlene

Amy Eryilmaz_1
New Member

Re: gethostbyname fails

To Berlene ...
Thanks for the advice, but I do not find that patch installed on our systems.
Any other ideas?

Thanks.
Anthony Goonetilleke_1
Regular Advisor

Re: gethostbyname fails

Make sure you can ping the hostname (not the fully qualified name), you might
also want to try an nslookup of the host this will check to see if your DNS/NIS
etc is all working and your resolv.conf is functioning properly.
Berlene Herren_1
Super Advisor

Re: gethostbyname fails

Do you have any of these NFS patches:
PHNE_20626 ( with dependencies
s700: 10.20: [PHCO_17381] [PHNE_18961[PHCO_19694/]
s800: 10.20: [PHCO_17381/] [PHNE_18962/[PHCO_19694/] ?

I know PHNE_20626 fixed problems with gethostbyname and rpc.lockd.

Berlene