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

  1. Newsgroups: comp.infosystems.gopher
  2. Path: sparky!uunet!pmafire!news.dell.com!swrinde!gatech!usenet.ins.cwru.edu!agate!spool.mu.edu!umn.edu!umeecs!nova!ellis
  3. From: ellis@nova.gmi.edu (Stew Ellis)
  4. Subject: Re: Problem with Xgopher 1.2 and/or gethostbyname
  5. Message-ID: <ellis.724971303@nova>
  6. Sender: news@zip.eecs.umich.edu (Mr. News)
  7. Organization: GMI Engineering&Management Institute, Flint, MI
  8. References: <9212211931.AA09915@spirit.aud.alcatel.com>
  9. Date: Mon, 21 Dec 1992 20:55:03 GMT
  10. Lines: 51
  11.  
  12. droelke@spirit.aud.alcatel.com (Daniel R. Oelke) writes:
  13.  
  14. >I just compiled Xgopher 1.2 - my first gopher client.
  15. >It appears to work great, but only with numerical IP address.  
  16.  
  17. >The problem I have is that the function call to gethostbyname according
  18. >to my man pages only resolves hosts listed in /etc/hosts , but apparently
  19. >it is intended to (in net.c of xgopher.c) to access the domain name server
  20. >and resolve the host this way.  This defficiency of course creates 
  21. >problems as I can't use anything other than the IP addresses for
  22. >xgopher.
  23.  
  24. >My big question is: Is there a workaround or fix for this?
  25.  
  26.  
  27. >The flavor of UNIX I am running is 
  28. >"SunOS Release 4.1.2 (GENERIC) #1: "
  29. >and I am running OpenWindows 3 (and I have gotten around the problems with
  30. >the Xmu library).
  31.  
  32. >Thanks for any and all help you can give me.
  33.  
  34. >Dan Oelke
  35.  
  36. >-----------------------------------_---_--------------------------------------
  37. >Dan Oelke                         / \ / \              Alcatel Network Systems
  38. >droelke@aud.alcatel.com           \  V  /                       Richardson, TX
  39. >Phone: (214) 996-5013              \VMS/             #include <std-disclaim.h>
  40. >  Fax: (214) 996-7119               \ / 
  41. >-------------------------------------V----------------------------------------
  42.  
  43. I have compiled xgopher 1.2 on SunOS 4.1.2 and am able to invoke is for
  44. example:
  45.  xgopher gopher.msen.com
  46.  
  47. gopher.msen.com is definitely being resolved by DNS.  It is not in our
  48. /etc/hosts or our NIS maps.  The difficulty is the way that Sun does DNS.
  49. It generally assumes you will either have complete /etc/hosts tables or that
  50. you will be running NIS, which will then hand off DNS requests to DNS.  Is
  51. DNS working in general at your site?  Can you do ftp by name to other sites?
  52.  
  53. This is a frequent discussion item in comp.sys.sun.admin.  There are ways of
  54. fixing Sun DNS service to work without NIS, but we run NIS and I have not
  55. needed to do that.  It involves remaking libc.so with the lookup routines in
  56. libresolv.a or something.
  57.  
  58. --
  59. --                                                        ___________________
  60.   R.Stewart(Stew) Ellis, Assoc.Prof., (Off)313-762-9765  /   _____  ______ 
  61.   Humanities & Social Science,  GMI Eng.& Mgmt. Inst.   /        / /  /  / /
  62.   Flint, MI 48504      ellis@nova.gmi.edu              /________/ /  /  / /
  63.