home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / infosyst / gopher / 1737 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.infosystems.gopher
  2. Path: sparky!uunet!munnari.oz.au!yarra-glen.aaii.oz.au!rgg
  3. From: rgg@yarra-glen.aaii.oz.au (Rupert G. Goldie)
  4. Subject: Re: Problem with Xgopher 1.2 and/or gethostbyname
  5. Message-ID: <1992Dec24.035738.27407@yarra-glen.aaii.oz.au>
  6. Organization: Australian Artificial Intelligence Institute
  7. References: <9212211931.AA09915@spirit.aud.alcatel.com>
  8. Date: Thu, 24 Dec 1992 03:57:38 GMT
  9. Lines: 26
  10.  
  11. droelke@spirit.aud.alcatel.com (Daniel R. Oelke) writes:
  12.  
  13. >I just compiled Xgopher 1.2 - my first gopher client.
  14. >It appears to work great, but only with numerical IP address.  
  15.  
  16. >The problem I have is that the function call to gethostbyname according
  17. >to my man pages only resolves hosts listed in /etc/hosts , but apparently
  18. >it is intended to (in net.c of xgopher.c) to access the domain name server
  19. >and resolve the host this way.  This defficiency of course creates 
  20. >problems as I can't use anything other than the IP addresses for
  21. >xgopher.
  22.  
  23. >My big question is: Is there a workaround or fix for this?
  24.  
  25. I have run into this problem many times on the Sun. I just add -lresolv to
  26. the list of libraries to be linked to make it use the nameserver. You can
  27. hack your libc to make it use the resolver by default, but I haven't tried
  28. that yet.
  29.  
  30. Hope this helps,
  31.  
  32. Rupert
  33. -- 
  34. Rupert G. Goldie, Research Scientist                rgg@aaii.oz.au
  35. Australian Artificial Intelligence Institute        
  36. Life's a bitch and then you die.
  37.