Article View: comp.sources.bugs
Article #158Re: Perl 3.0 Beta, gethostent() and the DNS; also, make x2p
From: Guy Harris
Date: Wed, 13 Sep 1989 17:37
Date: Wed, 13 Sep 1989 17:37
9 lines
1047 bytes
1047 bytes
>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.
Technical Details
Message-ID:
<2444@auspex.auspex.com>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!uakari.primate.wisc.edu!aplcen!ginosko!uunet!auspex!guyReferences:
<7199@rpi.edu> <1989Sep12.132133.10226@i88.isc.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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