Xref: utzoo comp.sources.bugs:1931 alt.sources.d:87 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!aplcen!ginosko!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.sources.bugs,alt.sources.d Subject: Re: Perl 3.0 Beta, gethostent() and the DNS; also, make x2p Message-ID: <2444@auspex.auspex.com> Date: 13 Sep 89 17:37:33 GMT References: <7199@rpi.edu> <1989Sep12.132133.10226@i88.isc.com> Reply-To: guy@auspex.auspex.com (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 9 >You ought to be able to use _gethtent instead of gethostent. At least >this is true for 4.3BSD versions of the resolver. _gethtent is what >the gethostby* routines use to look up hosts if the nameserver isn't up. The ultimate problem is that "gethostent()" doesn't make sense when run with the resolver, so simply disabling it (e.g., making it print "What? List every host listed in the DNS? Are you daft"? :-)) if you're linking with a library that makes "gethost*()" use the resolver is probably the correct solution.