home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / linux / 22497 < prev    next >
Encoding:
Text File  |  1993-01-02  |  1.7 KB  |  48 lines

  1. Newsgroups: comp.os.linux
  2. From: loz@holmes.demon.co.uk (Laurence Culhane)
  3. Path: sparky!uunet!pipex!demon!holmes.demon.co.uk!loz
  4. Subject: HELPFUL TO SOME
  5. Keywords: hosts, tcpip, hostbyname, resolve
  6. Organization: Disorganised linuxer
  7. Date: Sun, 3 Jan 1993 00:39:11 +0000
  8. Message-ID: <1993Jan3.003911.1954@holmes.demon.co.uk>
  9. Sender: usenet@demon.co.uk
  10. Lines: 36
  11.  
  12. Just in case this is useful to some (I've mailed some people already).
  13. If you (like me) haven't used the net code from libc until now (4.2),
  14. and are suffering from problems, this appears to be a tip.
  15.  
  16. I upgraded to the latest gcc 2.3.3 and lib 4.2 no problems.  But a number
  17. of people using old SLS releases said their net access failed, essentially
  18. saying the name couldn't be resolved/found...etc.  I have never seen SLS
  19. but the following helped some people.
  20.  
  21. If you use networking code under the latest 4.2 you may need the file
  22. /usr/etc/inet/host.conf.  I don't know where docs are, but from a *QUICK*
  23. look at the source for gethostbyname etc etc   it will tell your net code
  24. what to do when trying to resolve a name.  Mine looks like this
  25.  
  26. order    hosts, bind
  27.  
  28. This means it will look for IP hosts in /usr/etc/inet/hosts before it tries
  29. anything else.
  30.  
  31. This may only be of interest to those with pre-alpha SLIP code.  But others
  32. have mailed me.
  33.  
  34. Hope this helps someone
  35.  
  36. BE AWARE I LOOKED AT THE SOURCE.  TRIED THIS.  WORKED FOR ME.
  37. It may not help YOUR problem.  If not...look at the SOURCE yourself
  38.  
  39. FOR GODS SAKE....if I see a followup to this message in c.o.l that isn't
  40. a summary I'll kill you.  Reply's should be via mail unless of wide interest.
  41.  
  42.  
  43.  
  44. -- 
  45. Laurence Culhane
  46. Internet: loz@holmes.demon.co.uk
  47. Voice: +44 604 230262
  48.