home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / bind / bind-4.001 / bind-4~ / bind-4.9.3-BETA9 / contrib / rfc1101 / README < prev   
Text File  |  1993-07-06  |  2KB  |  58 lines

  1. This is a implementation of getnetby{addr,name}() and {set,end}hostent()
  2. that uses the DNS (RFC1101).
  3.  
  4. We have moved the old versions of getnetby{addr,name}() and
  5. {set,end}hostent() to _getnetby{addr,name}() and _{set,end}hostent().
  6.  
  7. Our implementation querys the DNS and falls back to the old functions in
  8. the case of a negative reply. This is done since, at this moment, few people
  9. have entered this information in the DNS.
  10.  
  11. Because of this we have modified the {set,end}netent() functions so now
  12. they turn on or off the resolver options "RES_STAYOPEN | RES_USEVC"
  13. (by calling {set,end}hostent() ) AND open the /etc/networks .
  14.  
  15. We have made a test program (called nettest) that looks for information
  16. on a network passed in the command line (either by name or by number).
  17.  
  18.     gnu% ./nettest 192.138.204
  19.      Official name: net.mat.uc.pt
  20.      Net addr. type: 2
  21.      Network :  12618444 ---->   192.138.204
  22.      Aliases :
  23.     gnu% ./nettest 192.138.204.0
  24.      Official name: net.mat.uc.pt 
  25.      Net addr. type: 2 
  26.      Network :  3230321664 ---->   192.138.204.0  
  27.      Aliases : 
  28.     gnu% ./nettest net.mat.uc.pt.
  29.      Official name: net.mat.uc.pt
  30.      Net addr. type: 2
  31.      Network :  12618444 ---->   192.138.204
  32.      Aliases :
  33.     gnu% ./nettest mat.uc.pt
  34.      Official name: mat.uc.pt
  35.      Net addr. type: 2
  36.      Network :  12618444 ---->   192.138.204
  37.      Aliases :
  38.  
  39. The program nettest.local uses the functions in libresolv, that usually
  40. read /etc/networks.
  41.  
  42. The Makefile included can also recompile netstat (if you have the
  43. source to netstat) using these functions.
  44.  
  45. At this moment this netstat (option -r) is very slow.
  46. It will be better when named caches negative replys and/or
  47. more people enter this information in the DNS.
  48.  
  49. This has been tested in BSD/386 (0.9.4), in SunOS (4.0.3 and 4.1.3)
  50. and Ultrix 4.2.
  51. NOTE: These versions never use yellow pages (NIS).
  52.  
  53. Authors:
  54.     Carlos Leandro    leandro@mat.uc.pt
  55.     Rui Salgueiro    rps@mat.uc.pt
  56.  
  57. Send bugs reports, bug fixes, suggestions, etc... to rfc1101@mat.uc.pt.
  58.