Following up to my previous posting, I beleive that smtp program is not at fault for hanging gethostbyname() - I have other programs (ipop3d) hanging the same way. I think this is a bug in NIS+ client code: get...by...() functions tend to hang if NIS+ was not properly working at the moment. Eugene