Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!CCU1.AUKUNI.AC.NZ!russell From: russell@CCU1.AUKUNI.AC.NZ Newsgroups: comp.sys.sgi Subject: Re: gethostbyname and YP Message-ID: <9007252039.AA03638@ccu1.aukuni.ac.nz> Date: 26 Jul 90 03:14:03 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 38 X-Unparsable-Date: Thu, 26 Jul 90 08:39:36 NZT > > Is there a known bug (under 3.2) when using YP and calling > 'gethostbyname'? We cannot get the function to return information > on any nodes outside of our slave server, even though they call > all be 'pinged' and so on. Gethostbyname appears to be failing > on the bind operation. Any clues? > > Rick Simonian > Harris Space Systems Corp. > rsimonian@nasamail.nasa.gov > This sounds like something that was discussed here a few weeks back. I happened to save a copy of the answer: >Both master and slave servers must have "-i" in ypserv.options and they must >have a properly configured /usr/etc/resolv.conf that specifies the DNS >server address(es) and domain name. Note that the YP database is checked >before querying the name server. > >In IRIX 3.3, you can bypass YP for all hostname lookups with a >"hostresorder" entry line in /usr/etc/resolv.conf. See resolver(4) >and Ch. 8 in the new Network Communications guide for details. I am sorry that I did not save the signature, so I can't give credit where its due. Russell. -- +-----------------------------------------------------------------+ | Russell Fulton 'phone +64 9 737-999 x 8955 | | Computer Centre domain rj_fulton@aukuni.ac.nz | | University of Auckland fax +64 9 303-2467 | | Private Bag time gmt -12 (13) (summer time)| | Auckland, New Zealand. | +-----------------------------------------------------------------+