home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / programm / 5393 < prev    next >
Encoding:
Internet Message Format  |  1992-11-21  |  1.1 KB

  1. Xref: sparky comp.unix.programmer:5393 comp.unix.questions:13751
  2. Path: sparky!uunet!news.univie.ac.at!blekul11!frmop11!dearn!esoc!kkeyte
  3. Organisation: European Space Operation Centre (E.S.O.C)
  4. Date: Friday, 20 Nov 1992 17:01:40 CET
  5. From: Karl Keyte <KKEYTE@ESOC.BITNET>
  6. Message-ID: <92325.170140KKEYTE@ESOC.BITNET>
  7. Newsgroups: comp.unix.programmer,comp.unix.questions
  8. Subject: NIS & /etc/hosts
  9. Lines: 19
  10.  
  11. We have a network in which hosts come up without a server (i.e. are
  12. disk- and datafull).  In this event the domainname is null, NIS
  13. (Yellow Pages) isn't running and the /etc/hosts file contains a
  14. valid list of other hosts on the network.
  15.  
  16. 'ping'ing other hosts works fine and tracing the ping I can see that
  17. the hosts file is indeed being read.  Code which used 'gethostbyaddr',
  18. however, doesn't work although I can see that the hosts file is being
  19. read again.
  20.  
  21. Anyone know why 'gethostbyaddr' doesn't work?  I understood that the
  22. system is first supposed to try NIS and then the hosts file.
  23.  
  24.   System:   Multiple Sun SPARC-2 hosts connected on
  25.             thin-wire Ethernet.  SunOS 4.1.2.
  26.  
  27. Help!
  28.  
  29. Karl
  30.