Perl 3.0 Beta, gethostent() and the DNS; also, make x2p

Guy Harris guy at auspex.auspex.com
Thu Sep 14 03:37:33 AEST 1989


>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.



More information about the Alt.sources.d mailing list